mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
right context menu link .
This commit is contained in:
parent
e7218fc12b
commit
0f08026d3f
|
@ -28,7 +28,7 @@
|
|||
#include <QWebEngineSettings>
|
||||
#include <assert.h>
|
||||
#include <map>
|
||||
|
||||
#include <QWebEngineContextMenuData>
|
||||
#ifdef Q_OS_WIN32
|
||||
#include <windows.h>
|
||||
#include <QPainter>
|
||||
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue