diff --git a/widgets/webview.cpp b/widgets/webview.cpp index 8066baa65..fe003a5c7 100644 --- a/widgets/webview.cpp +++ b/widgets/webview.cpp @@ -232,9 +232,16 @@ void WebView::contextMenuEvent(QGraphicsSceneContextMenuEvent *event) QContextMenuEvent ce(static_cast(event->reason()), event->pos().toPoint(), event->screenPos()); - d->page->event(&ce); - if (ce.isAccepted()) { + + if (d->page->swallowContextMenuEvent(&ce)) { event->accept(); + } else { + d->page->updatePositionDependentActions(event->pos().toPoint()); + + d->page->event(&ce); + if (ce.isAccepted()) { + event->accept(); + } } }