diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-16 12:41:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-16 12:41:04 -0700 |
commit | 076f86202aab51529d99f73427a1a834a0ef5d34 (patch) | |
tree | 9c6a0041124450ea56d67b8e3c75b008b28d1eee /qt-ui/globe.cpp | |
parent | f98ace681acbc3aba64779d639fef4686c6f3474 (diff) | |
download | subsurface-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.cpp | 4 |
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; |