summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.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/mainwindow.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/mainwindow.cpp')
-rw-r--r--qt-ui/mainwindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp
index 495c2f6b8..70c4231f0 100644
--- a/qt-ui/mainwindow.cpp
+++ b/qt-ui/mainwindow.cpp
@@ -146,7 +146,7 @@ MainWindow::MainWindow() : QMainWindow(),
connect(globeGps, SIGNAL(coordinatesChanged()), locationInformation, SLOT(updateGpsCoordinates()));
connect(locationInformation, SIGNAL(startEditDiveSite(uint32_t)), globeGps, SLOT(prepareForGetDiveCoordinates()));
connect(locationInformation, SIGNAL(endEditDiveSite()), globeGps, SLOT(prepareForGetDiveCoordinates()));
- connect(information(), SIGNAL(diveSiteChanged()), globeGps, SLOT(centerOnCurrentDive()));
+ connect(information(), SIGNAL(diveSiteChanged(uint32_t)), globeGps, SLOT(centerOnDiveSite(uint32_t)));
#ifdef NO_PRINTING
plannerDetails->printPlan()->hide();