diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index 439e114df..4c46d36ac 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -808,6 +808,8 @@ void MainTab::rejectChanges() resetPallete(); // no harm done to call cancelPlan even if we were not in ADD or PLAN mode... DivePlannerPointsModel::instance()->cancelPlan(); + if(lastMode == ADD) + MainWindow::instance()->dive_list()->restoreSelection(); // now make sure that the correct dive is displayed if (selected_dive >= 0) |