┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/selectionmanager.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}