]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/selectionmanager.cpp
SVN_SILENT: fix documentation typo
[dolphin.git] / src / selectionmanager.cpp
index af92e63d04f0dab183519e6ab5dbb3d43d985030..47ef16d1a73271a026ad53b23b0af3b3e55ca035 100644 (file)
@@ -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);
     }
 }