mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Event filters need to tell the caller if they took the event
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
5670b5fedd
commit
a1c023bee0
1 changed files with 2 additions and 0 deletions
|
@ -60,8 +60,10 @@ bool LocationInformationWidget::eventFilter(QObject*, QEvent *ev)
|
||||||
QMenu contextMenu;
|
QMenu contextMenu;
|
||||||
contextMenu.addAction(tr("Merge dive Sites"), this, SLOT(mergeSelectedDiveSites()));
|
contextMenu.addAction(tr("Merge dive Sites"), this, SLOT(mergeSelectedDiveSites()));
|
||||||
contextMenu.exec(ctx->globalPos());
|
contextMenu.exec(ctx->globalPos());
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void LocationInformationWidget::mergeSelectedDiveSites() {
|
void LocationInformationWidget::mergeSelectedDiveSites() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue