diff --git a/articleview.cc b/articleview.cc index a1f6db98..f305a3cc 100644 --- a/articleview.cc +++ b/articleview.cc @@ -28,7 +28,7 @@ #include #include #include - +#include #ifdef Q_OS_WIN32 #include #include @@ -1716,8 +1716,8 @@ void ArticleView::contextMenuRequested( QPoint const & pos ) QAction * saveImageAction = 0; QAction * saveSoundAction = 0; - //todo url() or lastclickurl ? - QUrl targetUrl( r->url() ); + QWebEngineContextMenuData menuData=r->contextMenuData(); + QUrl targetUrl(menuData.linkUrl()); Contexts contexts; tryMangleWebsiteClickedUrl( targetUrl, contexts );