From 6b15f5d4669fd5068805dc52ab7cf8bad00c517f Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Sun, 10 Jul 2022 14:27:50 +0800 Subject: [PATCH] opt: handle the url click before the page finished loaded --- articlewebpage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/articlewebpage.cpp b/articlewebpage.cpp index bf686114..b40ac77f 100644 --- a/articlewebpage.cpp +++ b/articlewebpage.cpp @@ -31,7 +31,7 @@ bool ArticleWebPage::acceptNavigationRequest( const QUrl & resUrl, NavigationTyp if( type == QWebEnginePage::NavigationTypeLinkClicked ) { emit linkClicked( url ); - return true; + return false; } return QWebEnginePage::acceptNavigationRequest( url, type, isMainFrame );