Merge pull request #1856 from xiaoyifang/fix/unset-cursor
Some checks are pending
SonarCloud / Build and analyze (push) Waiting to run

fix: even loadfinised=false, the cursor will also have to be unset
This commit is contained in:
xiaoyifang 2024-10-23 11:14:59 +08:00 committed by GitHub
commit b39397a544
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -435,6 +435,8 @@ void ArticleView::loadFinished( bool result )
QUrl url = webview->url(); QUrl url = webview->url();
qDebug() << "article view loaded url:" << url.url().left( 200 ) << result; qDebug() << "article view loaded url:" << url.url().left( 200 ) << result;
webview->unsetCursor();
if ( url.url() == "about:blank" ) { if ( url.url() == "about:blank" ) {
return; return;
} }
@ -458,7 +460,6 @@ void ArticleView::loadFinished( bool result )
setActiveArticleId( "" ); setActiveArticleId( "" );
} }
webview->unsetCursor();
// Expand collapsed article if only one loaded // Expand collapsed article if only one loaded
webview->page()->runJavaScript( QString( "gdCheckArticlesNumber();" ) ); webview->page()->runJavaScript( QString( "gdCheckArticlesNumber();" ) );