X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/blobdiff_plain/350197cee925da6134788c92471a720e91478331..b8a4e0fac2820ec8fc442c2abeea700ae4947e01:/src/selectionmanager.cpp 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); } }