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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user