diff options
Diffstat (limited to 'qt-ui/maintab.cpp')
-rw-r--r-- | qt-ui/maintab.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/maintab.cpp b/qt-ui/maintab.cpp index b4b711445..28c497815 100644 --- a/qt-ui/maintab.cpp +++ b/qt-ui/maintab.cpp @@ -830,6 +830,9 @@ void MainTab::rejectChanges() } DivePlannerPointsModel::instance()->setPlanMode(DivePlannerPointsModel::NOTHING); MainWindow::instance()->dive_list()->setFocus(); + // the user could have edited the location and then canceled the edit + // let's get the correct location back in view + MainWindow::instance()->globe()->centerOn(current_dive); } #undef EDIT_TEXT2 |