]> cloud.milkyroute.net Git - dolphin.git/commitdiff
also adjust the current index when selecting an item by the (+) selector
authorPeter Penz <peter.penz19@gmail.com>
Mon, 16 Jun 2008 20:02:06 +0000 (20:02 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 16 Jun 2008 20:02:06 +0000 (20:02 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=821197

src/selectionmanager.cpp

index 248b4288d9f9c8a862face80522769891ccae497..af92e63d04f0dab183519e6ab5dbb3d43d985030 100644 (file)
@@ -106,6 +106,7 @@ void SelectionManager::setItemSelected(bool selected)
         QItemSelectionModel* selModel = m_view->selectionModel();
         if (selected) {
             selModel->select(index, QItemSelectionModel::Select);
         QItemSelectionModel* selModel = m_view->selectionModel();
         if (selected) {
             selModel->select(index, QItemSelectionModel::Select);
+            selModel->setCurrentIndex(index, QItemSelectionModel::Select);
         } else {
             selModel->select(index, QItemSelectionModel::Deselect);
         }
         } else {
             selModel->select(index, QItemSelectionModel::Deselect);
         }