mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
also adjust the current index when selecting an item by the (+) selector
svn path=/trunk/KDE/kdebase/apps/; revision=821197
This commit is contained in:
parent
836849c785
commit
350197cee9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue