summaryrefslogtreecommitdiffstats
path: root/qt-ui/subsurfacewebservices.cpp
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tomaz.canabrava@gmail.com>2015-06-05 10:52:52 -0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-07 08:04:32 -0700
commit6b81fb49d099f62c30fe52668c3a9bc74e46506f (patch)
treeb5d4a7d79ea8ed29b1eda9f4e774475bb21be83c /qt-ui/subsurfacewebservices.cpp
parent218ad95d7de4da07262ad1244178ca6c8c3b30cf (diff)
downloadsubsurface-6b81fb49d099f62c30fe52668c3a9bc74e46506f.tar.gz
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>
Diffstat (limited to 'qt-ui/subsurfacewebservices.cpp')
-rw-r--r--qt-ui/subsurfacewebservices.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/subsurfacewebservices.cpp b/qt-ui/subsurfacewebservices.cpp
index 0d2f42a8d..0159977a7 100644
--- a/qt-ui/subsurfacewebservices.cpp
+++ b/qt-ui/subsurfacewebservices.cpp
@@ -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();
}