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