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>
This commit is contained in:
Vinicius Machado 2013-11-26 13:41:05 -02:00 committed by Dirk Hohndel
parent 7e36b4a253
commit 45f716f857

View file

@ -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'