From 45f716f85752d0231e0fe0fef5cf2c0a8081a379 Mon Sep 17 00:00:00 2001 From: Vinicius Machado Date: Tue, 26 Nov 2013 13:41:05 -0200 Subject: [PATCH] Re-enable adding a location to selected dive via double-click on the map The fix for 'double click on the map shouldn't zoom' had broken the selection of the current location for the selected dive, this patch fixes that. See #291 Signed-off-by: Vinicius Machado Signed-off-by: Tomaz Canabrava Signed-off-by: Dirk Hohndel --- qt-ui/globe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 8848ca306..42e97c898 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -78,7 +78,7 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0) bool GlobeGPS::eventFilter(QObject *obj, QEvent *ev) { // This disables Zooming when a double click occours on the scene. - if (ev->type() == QEvent::MouseButtonDblClick) + if (ev->type() == QEvent::MouseButtonDblClick && !editingDiveCoords) return true; // This disables the Marble's Context Menu // we need to move this to our 'contextMenuEvent'