opt: handle the url click before the page finished loaded

This commit is contained in:
Xiao YiFang 2022-07-10 14:27:50 +08:00
parent 30f3b64deb
commit 6b15f5d466

View file

@ -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 );