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:
Dirk Hohndel 2015-08-31 19:24:36 -07:00
parent 5670b5fedd
commit a1c023bee0

View file

@ -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() {