summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-ui/globe.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 9b50adccf..2188742de 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -286,13 +286,15 @@ void GlobeGPS::zoomOutForNoGPS()
// this is called if the dive has no GPS location.
// zoom out quite a bit to show the globe and remember that the next time
// we show a dive with GPS location we need to zoom in again
- if (fixZoomTimer->isActive())
- fixZoomTimer->stop();
- setZoom(0, Marble::Automatic);
if (!needResetZoom) {
needResetZoom = true;
- currentZoomLevel = zoom();
+ if (!fixZoomTimer->isActive())
+ currentZoomLevel = zoom();
}
+ if (fixZoomTimer->isActive())
+ fixZoomTimer->stop();
+ // 1000 is supposed to make sure you see the whole globe
+ setZoom(1000, Marble::Linear);
}
void GlobeGPS::endGetDiveCoordinates()