From 36f181547f3067377a1d058ac6f2c1e8884442a7 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Wed, 23 Oct 2024 10:24:46 +0800 Subject: [PATCH 1/2] fix: even loadfinised=false, the cursor will also have to be unset --- src/ui/articleview.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 2f9f4e8f..40354292 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -434,6 +434,8 @@ void ArticleView::loadFinished( bool result ) setZoomFactor( cfg.preferences.zoomFactor ); QUrl url = webview->url(); qDebug() << "article view loaded url:" << url.url().left( 200 ) << result; + + webview->unsetCursor(); if ( url.url() == "about:blank" ) { return; @@ -458,7 +460,6 @@ void ArticleView::loadFinished( bool result ) setActiveArticleId( "" ); } - webview->unsetCursor(); // Expand collapsed article if only one loaded webview->page()->runJavaScript( QString( "gdCheckArticlesNumber();" ) ); From 7bcb2372b991f5e9c658bb6bc0ff65bee6dd0f16 Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Wed, 23 Oct 2024 02:26:24 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- src/ui/articleview.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/articleview.cc b/src/ui/articleview.cc index 40354292..376c84f8 100644 --- a/src/ui/articleview.cc +++ b/src/ui/articleview.cc @@ -434,7 +434,7 @@ void ArticleView::loadFinished( bool result ) setZoomFactor( cfg.preferences.zoomFactor ); QUrl url = webview->url(); qDebug() << "article view loaded url:" << url.url().left( 200 ) << result; - + webview->unsetCursor(); if ( url.url() == "about:blank" ) {