mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: even loadfinised=false, the cursor will also have to be unset
This commit is contained in:
parent
245cb10880
commit
36f181547f
|
@ -434,6 +434,8 @@ void ArticleView::loadFinished( bool result )
|
||||||
setZoomFactor( cfg.preferences.zoomFactor );
|
setZoomFactor( cfg.preferences.zoomFactor );
|
||||||
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();" ) );
|
||||||
|
|
Loading…
Reference in a new issue