From 6b81fb49d099f62c30fe52668c3a9bc74e46506f Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Fri, 5 Jun 2015 10:52:52 -0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/mainwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui/mainwindow.cpp') 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(); -- cgit v1.2.3-70-g09d2