aboutsummaryrefslogtreecommitdiffstats
path: root/qt-ui
diff options
context:
space:
mode:
authorGravatar Vinicius Machado <vsmachado@gmail.com>2013-11-26 13:41:05 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-26 11:25:16 -0800
commit45f716f85752d0231e0fe0fef5cf2c0a8081a379 (patch)
tree18da6d2562d563457dfb567679aade96eca64bc1 /qt-ui
parent7e36b4a25386659dfafa82dd11bd7aa6e24aea8f (diff)
downloadsubsurface-45f716f85752d0231e0fe0fef5cf2c0a8081a379.tar.gz
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 <vsmachado@gmail.com> Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r--qt-ui/globe.cpp2
1 files changed, 1 insertions, 1 deletions
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'