summaryrefslogtreecommitdiffstats
path: root/qt-ui/divelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/divelistview.cpp')
-rw-r--r--qt-ui/divelistview.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/qt-ui/divelistview.cpp b/qt-ui/divelistview.cpp
index 9779d60e7..b0045b765 100644
--- a/qt-ui/divelistview.cpp
+++ b/qt-ui/divelistview.cpp
@@ -437,7 +437,11 @@ void DiveListView::merge_trip(const QModelIndex &a, int offset)
trip_a->notes = strdup(trip_b->notes);
while (trip_b->dives)
add_dive_to_trip(trip_b->dives, trip_a);
+ rememberSelection();
reload(currentLayout, false);
+ fixMessyQtModelBehaviour();
+ restoreSelection();
+ mark_divelist_changed(TRUE);
}
void DiveListView::mergeTripAbove()