┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-06-16 20:02:06 +0000
committerPeter Penz <[email protected]>2008-06-16 20:02:06 +0000
commit350197cee925da6134788c92471a720e91478331 (patch)
treeafc6cd928a05c9f75bf45f090a4e5e26a1268782
parent836849c7853ef1d8d85c9412626730892e2a9af7 (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.cpp1
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);
}