From 076f86202aab51529d99f73427a1a834a0ef5d34 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Thu, 16 Jul 2015 12:41:04 -0700 Subject: 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 --- qt-ui/globe.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'qt-ui/globe.cpp') 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; -- cgit v1.2.3-70-g09d2