mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
opt: handle the url click before the page finished loaded
This commit is contained in:
parent
30f3b64deb
commit
6b15f5d466
|
@ -31,7 +31,7 @@ bool ArticleWebPage::acceptNavigationRequest( const QUrl & resUrl, NavigationTyp
|
||||||
if( type == QWebEnginePage::NavigationTypeLinkClicked )
|
if( type == QWebEnginePage::NavigationTypeLinkClicked )
|
||||||
{
|
{
|
||||||
emit linkClicked( url );
|
emit linkClicked( url );
|
||||||
return true;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return QWebEnginePage::acceptNavigationRequest( url, type, isMainFrame );
|
return QWebEnginePage::acceptNavigationRequest( url, type, isMainFrame );
|
||||||
|
|
Loading…
Reference in a new issue