diff options
| author | Peter Penz <[email protected]> | 2008-06-16 20:02:06 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-06-16 20:02:06 +0000 |
| commit | 350197cee925da6134788c92471a720e91478331 (patch) | |
| tree | afc6cd928a05c9f75bf45f090a4e5e26a1268782 | |
| parent | 836849c7853ef1d8d85c9412626730892e2a9af7 (diff) | |
also adjust the current index when selecting an item by the (+) selector
svn path=/trunk/KDE/kdebase/apps/; revision=821197
| -rw-r--r-- | src/selectionmanager.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index 248b4288d..af92e63d0 100644 --- a/src/selectionmanager.cpp +++ b/src/selectionmanager.cpp @@ -106,6 +106,7 @@ 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); } |
