aboutsummaryrefslogtreecommitdiffstats
path: root/desktop-widgets/tab-widgets/maintab.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-28 00:34:34 +0100
committerGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-04-07 00:13:35 +0200
commit42b423f02c0b26eedd563be6f75df1e1952f6e72 (patch)
tree839d81c9bf4de0edefa8d9a3f15ad0defcb99cf6 /desktop-widgets/tab-widgets/maintab.cpp
parent150bd9763e7f95c589f2118f15bc2401bd3d3350 (diff)
downloadsubsurface-42b423f02c0b26eedd563be6f75df1e1952f6e72.tar.gz
cleanup: don't center map on rejecting edit
The editing of the dive site is controlled via an undo command. No point in centering the map when cancelling a profile-edit. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'desktop-widgets/tab-widgets/maintab.cpp')
-rw-r--r--desktop-widgets/tab-widgets/maintab.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/desktop-widgets/tab-widgets/maintab.cpp b/desktop-widgets/tab-widgets/maintab.cpp
index 2c64833da..3ae954c05 100644
--- a/desktop-widgets/tab-widgets/maintab.cpp
+++ b/desktop-widgets/tab-widgets/maintab.cpp
@@ -560,9 +560,6 @@ void MainTab::rejectChanges()
clear_dive(&displayed_dive);
updateDiveInfo();
- // the user could have edited the location and then canceled the edit
- // let's get the correct location back in view
- MapWidget::instance()->centerOnDiveSite(current_dive ? current_dive->dive_site : nullptr);
// show the profile and dive info
MainWindow::instance()->graphics->replot();
MainWindow::instance()->setEnabledToolbar(true);