diff options
| author | Peter Penz <[email protected]> | 2008-06-16 21:19:34 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-16 21:19:34 +0000 |
| commit | 989cc7e0bf17394bae7772ea1fec26cf873eb588 (patch) | |
| tree | 37d1616015995bba0aa95eb8349e5d977b604a32 /src/selectionmanager.cpp | |
| parent | 350197cee925da6134788c92471a720e91478331 (diff) | |
also update the current index if a deselection is done
svn path=/trunk/KDE/kdebase/apps/; revision=821216
Diffstat (limited to 'src/selectionmanager.cpp')
| -rw-r--r-- | src/selectionmanager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index af92e63d0..47ef16d1a 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -106,10 +106,10 @@ void SelectionManager::setItemSelected(bool selected) QItemSelectionModel* selModel = m_view->selectionModel(); if (selected) { selModel->select(index, QItemSelectionModel::Select); - selModel->setCurrentIndex(index, QItemSelectionModel::Select); } else { selModel->select(index, QItemSelectionModel::Deselect); } + selModel->setCurrentIndex(index, QItemSelectionModel::Current); } } |
