diff options
author | Tomaz Canabrava <tomaz.canabrava@gmail.com> | 2015-06-05 10:52:52 -0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-07 08:04:32 -0700 |
commit | 6b81fb49d099f62c30fe52668c3a9bc74e46506f (patch) | |
tree | b5d4a7d79ea8ed29b1eda9f4e774475bb21be83c /qt-ui/globe.h | |
parent | 218ad95d7de4da07262ad1244178ca6c8c3b30cf (diff) | |
download | subsurface-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/globe.h')
-rw-r--r-- | qt-ui/globe.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/globe.h b/qt-ui/globe.h index 74bb42bd0..31683dc35 100644 --- a/qt-ui/globe.h +++ b/qt-ui/globe.h @@ -2,6 +2,7 @@ #define GLOBE_H #ifndef NO_MARBLE +#include <stdint.h> #include <marble/MarbleWidget.h> #include <marble/GeoDataCoordinates.h> @@ -49,7 +50,7 @@ slots: void zoomOutForNoGPS(); void prepareForGetDiveCoordinates(); void endGetDiveCoordinates(); - void centerOnCurrentDive(); + void centerOnDiveSite(uint32_t uuid); }; #else // NO_MARBLE @@ -62,7 +63,7 @@ public: GlobeGPS(QWidget *parent); void reload(); void repopulateLabels(); - void centerOnCurrentDive(); + void centerOnDiveSite(uint32_t uuid); bool eventFilter(QObject *, QEvent *); public slots: |