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.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index f75e582fc..64f9caae5 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -310,13 +310,9 @@ void GlobeGPS::prepareForGetDiveCoordinates()
zoomOutForNoGPS();
}
-// This needs to update the dive site, not just this dive
void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::Unit unit)
{
- messageWidget->hide();
-
- // TODO: Check if this is still necessary.
- if (MainWindow::instance()->dive_list()->selectionModel()->selection().isEmpty())
+ if (!editingDiveLocation)
return;
// convert to degrees if in radian.
@@ -331,7 +327,6 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
displayed_dive_site.longitude.udeg = lrint(lon * 1000000.0);
emit coordinatesChanged();
repopulateLabels();
- editingDiveLocation = false;
}
void GlobeGPS::mousePressEvent(QMouseEvent *event)