aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-26 20:23:33 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-06-26 20:23:33 -0700
commit5fc31f6afcc3d6875cd9f31b77080a20ebafa437 (patch)
treef49d568387fcc9b0dc865643f5c0182a3c1b7e6f /qt-ui
parent0afe07d021256de8a68df035496eb520dbc58d82 (diff)
downloadsubsurface-5fc31f6afcc3d6875cd9f31b77080a20ebafa437.tar.gz
Globe: reset the view when called with no divesite
Returning here was simply wrong; we need to zoom out. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/globe.cpp3
1 files changed, 0 insertions, 3 deletions
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)) {