diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-26 13:30:48 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-08-26 13:33:50 (GMT) |
commit | 88ecc8c8250505129ccff2660c60412996e2fd85 (patch) | |
tree | 0ee8ce441e8a1561c4d922fcff1a868d695be1b2 /src/gui/itemviews | |
parent | 25c7f57c21dd22eaa38b4b511aa754a1be711bf1 (diff) | |
download | Qt-88ecc8c8250505129ccff2660c60412996e2fd85.zip Qt-88ecc8c8250505129ccff2660c60412996e2fd85.tar.gz Qt-88ecc8c8250505129ccff2660c60412996e2fd85.tar.bz2 |
QAbstractItemView sometimes doesn't allow changing the selection
If you do a selection with the mouse and react to selectionChanged by
changing the selection. Those changes would be overwritten by
QAbstractItemView::mouseReleaseEvent.
It is useless to set the selection on mouse release. We already do
that on mouse press.
Task-number: 250683
Reviewed-by: ogoffart
Diffstat (limited to 'src/gui/itemviews')
-rw-r--r-- | src/gui/itemviews/qabstractitemview.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/itemviews/qabstractitemview.cpp b/src/gui/itemviews/qabstractitemview.cpp index bca5df7..ccc57d7 100644 --- a/src/gui/itemviews/qabstractitemview.cpp +++ b/src/gui/itemviews/qabstractitemview.cpp @@ -1661,9 +1661,6 @@ void QAbstractItemView::mouseReleaseEvent(QMouseEvent *event) EditTrigger trigger = (selectedClicked ? SelectedClicked : NoEditTriggers); bool edited = edit(index, trigger, event); - if (d->selectionModel) - d->selectionModel->select(index, selectionCommand(index, event)); - setState(NoState); if (click) { |