From 5fc31f6afcc3d6875cd9f31b77080a20ebafa437 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 26 Jun 2015 20:23:33 -0700 Subject: Globe: reset the view when called with no divesite Returning here was simply wrong; we need to zoom out. Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 3 --- 1 file changed, 3 deletions(-) (limited to 'qt-ui') diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index b070da424..9b50adccf 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -247,9 +247,6 @@ void GlobeGPS::reload() void GlobeGPS::centerOnDiveSite(uint32_t uuid) { - if (uuid == 0) - return; - struct dive_site *ds = get_dive_site_by_uuid(uuid); if (!dive_site_has_gps_location(ds)) { -- cgit v1.2.3-70-g09d2