mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
150bd9763e
commit
42b423f02c
1 changed files with 0 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue