summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 19:24:36 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2015-08-31 19:24:36 -0700
commita1c023bee08b65e9d9274a1b8214234a5edf61bf (patch)
tree5223cfefbb54632feadb807f530f59da9e0df2dd
parent5670b5feddb8a5dd7805c41ac1e278815e685602 (diff)
downloadsubsurface-a1c023bee08b65e9d9274a1b8214234a5edf61bf.tar.gz
Event filters need to tell the caller if they took the event
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--qt-ui/locationinformation.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/locationinformation.cpp b/qt-ui/locationinformation.cpp
index cb45726cb..dbc22b178 100644
--- a/qt-ui/locationinformation.cpp
+++ b/qt-ui/locationinformation.cpp
@@ -60,8 +60,10 @@ bool LocationInformationWidget::eventFilter(QObject*, QEvent *ev)
QMenu contextMenu;
contextMenu.addAction(tr("Merge dive Sites"), this, SLOT(mergeSelectedDiveSites()));
contextMenu.exec(ctx->globalPos());
+ return true;
}
}
+ return false;
}
void LocationInformationWidget::mergeSelectedDiveSites() {