summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/divelistview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 0af6fbb10..9f5b0c0a7 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -203,7 +203,7 @@ void DiveListView::selectDive(int i, bool scrollto, bool toggle)
QModelIndex idx = match.first();
flags = toggle ? QItemSelectionModel::Toggle : QItemSelectionModel::Select;
flags |= QItemSelectionModel::Rows;
- selectionModel()->select(idx, flags);
+ selectionModel()->setCurrentIndex(idx, flags);
if(idx.parent().isValid()){
setAnimated(false);
expand(idx.parent());