summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-07-16 12:41:04 -0700
commit076f86202aab51529d99f73427a1a834a0ef5d34 (patch)
tree9c6a0041124450ea56d67b8e3c75b008b28d1eee /qt-ui/globe.cpp
parentf98ace681acbc3aba64779d639fef4686c6f3474 (diff)
downloadsubsurface-076f86202aab51529d99f73427a1a834a0ef5d34.tar.gz
Change API signature to act on dive_site, not uuid
This way in the future we can pass in a pointer to a dive site that isn't linked in our dive site list yet (i.e., while we are editing). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 244edf672..e74e4d107 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -242,10 +242,8 @@ void GlobeGPS::reload()
repopulateLabels();
}
-void GlobeGPS::centerOnDiveSite(uint32_t uuid)
+void GlobeGPS::centerOnDiveSite(struct dive_site *ds)
{
- struct dive_site *ds = get_dive_site_by_uuid(uuid);
-
if (!dive_site_has_gps_location(ds)) {
zoomOutForNoGPS();
return;