From 36f181547f3067377a1d058ac6f2c1e8884442a7 Mon Sep 17 00:00:00 2001 From: Xiao Yi Fang Date: Wed, 23 Oct 2024 10:24:46 +0800 Subject: [PATCH] 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();" ) );