summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp24
1 files changed, 14 insertions, 10 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index d4c7d49eb..3dc5c99ce 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -298,18 +298,22 @@ void GlobeGPS::zoomOutForNoGPS()
}
}
+void GlobeGPS::endGetDiveCoordinates()
+{
+ messageWidget->animatedHide();
+ editingDiveLocation = false;
+}
+
void GlobeGPS::prepareForGetDiveCoordinates()
{
- if (!messageWidget->isVisible()) {
- messageWidget->setMessageType(KMessageWidget::Warning);
- messageWidget->setText(QObject::tr("Move the map and double-click to set the dive location"));
- messageWidget->setWordWrap(true);
- messageWidget->setCloseButtonVisible(false);
- messageWidget->animatedShow();
- editingDiveLocation = true;
- if (!dive_has_gps_location(current_dive))
- zoomOutForNoGPS();
- }
+ messageWidget->setMessageType(KMessageWidget::Warning);
+ messageWidget->setText(QObject::tr("Move the map and double-click to set the dive location"));
+ messageWidget->setWordWrap(true);
+ messageWidget->setCloseButtonVisible(false);
+ messageWidget->animatedShow();
+ editingDiveLocation = true;
+ if (!dive_has_gps_location(current_dive))
+ zoomOutForNoGPS();
}
// This needs to update the dive site, not just this dive