aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/globe.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index fea564644..565d2867f 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -39,8 +39,6 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0)
setShowOverviewMap(false);
setShowScaleBar(true);
setShowCompass(false);
- // set the zoom as seen from n kilometer above. 3km / 10,000ft seems pleasant
- zoomView(zoomFromDistance(3));
}
void GlobeGPS::reload()
@@ -90,6 +88,12 @@ void GlobeGPS::centerOn(dive* dive)
prepareForGetDiveCoordinates(dive);
return;
}
+
+ // set the zoom as seen from n kilometer above. 3km / 10,000ft seems pleasant
+ // do not change it it was already modified by user
+ if (!zoom())
+ zoomView(zoomFromDistance(3));
+
centerOn(longitude,latitude, true);
}