mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Always send the UUID of the coordinates to the globe
We were relying in the current_dive to display the globe coordinates correctly - but this is not always the case: you can be inserting a new dive site and it isn't yet inside of the dive until the user presses accept. So always pass the uuid of the dive site that we want to display. Signed-off-by: Tomaz Canabrava <tomaz.canabrava@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
218ad95d7d
commit
6b81fb49d0
6 changed files with 20 additions and 19 deletions
|
@ -347,7 +347,7 @@ void SubsurfaceWebServices::buttonClicked(QAbstractButton *button)
|
|||
if (merge_locations_into_dives()) {
|
||||
mark_divelist_changed(true);
|
||||
MainWindow::instance()->globe()->repopulateLabels();
|
||||
MainWindow::instance()->globe()->centerOnCurrentDive();
|
||||
MainWindow::instance()->globe()->centerOnDiveSite(current_dive->dive_site_uuid);
|
||||
MainWindow::instance()->information()->updateDiveInfo();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue