summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-05 17:15:32 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-06-05 17:15:32 +0900
commit4d937051ca4390874f741c1a313fccf622cffcd3 (patch)
tree2b1da321ef09c9292f9313a5cf6d5ed6c005e5bd /qt-ui/divelistview.cpp
parentb115423aa1d2261090ac960ba3eb5a81fac76875 (diff)
downloadsubsurface-4d937051ca4390874f741c1a313fccf622cffcd3.tar.gz
Fixing some issues with the dive selection after OK on preferences
These changes should be correct - but they still don't fix the problem that after we click 'OK' on the preferences (regardless of whether any changes were made), the first dive is set as current dive and shown in the map window. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/divelistview.cpp')
-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 b75dda1f5..97daff88f 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -157,7 +157,7 @@ void DiveListView::reload(DiveTripModel::Layout layout, bool forceSort)
sortByColumn(0, Qt::DescendingOrder);
if (amount_selected && selected_dive >= 0) {
- // magic happens and the selected dive is expanded and scrolled to
+ selectDive(current_dive, true);
} else {
QModelIndex firstDiveOrTrip = m->index(0,0);
if (firstDiveOrTrip.isValid()) {