diff options
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r-- | qt-ui/globe.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index fea564644..c1abd082f 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() @@ -52,6 +50,8 @@ void GlobeGPS::reload() if (editingDiveCoords) { editingDiveCoords = 0; + if (messageWidget->isVisible()) + messageWidget->animatedHide(); } loadedDives = new GeoDataDocument; @@ -90,6 +90,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); } |