summaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/globe.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 1fcbdea1d..8f519cf94 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -289,7 +289,8 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
lat = lat * 180 / M_PI;
}
- /* change everything on the selection. */
+ // right now we try to only ever do this with one dive selected,
+ // but we keep the code here that changes the coordinates for each selected dive
int i;
struct dive *dive;
for_each_dive(i, dive) {
@@ -306,6 +307,9 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
void GlobeGPS::mousePressEvent(QMouseEvent *event)
{
+ if (event->type() != QEvent::MouseButtonDblClick)
+ return;
+
qreal lat, lon;
bool clickOnGlobe = geoCoordinates(event->pos().x(), event->pos().y(), lon, lat, GeoDataCoordinates::Degree);