diff --git a/src/selectionmanager.cpp b/src/selectionmanager.cpp index 248b4288d9..af92e63d04 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); }