Merge branch 'staged' into dev

This commit is contained in:
Xiao YiFang 2022-07-28 21:24:18 +08:00
commit 6e47c9900e

View file

@ -535,7 +535,19 @@ void ArticleView::loadFinished( bool result )
{ {
setZoomFactor( cfg.preferences.zoomFactor ); setZoomFactor( cfg.preferences.zoomFactor );
QUrl url = ui.definition->url(); QUrl url = ui.definition->url();
qDebug() << "article view loaded url:" << url.url().left( 200 ); qDebug() << "article view loaded url:" << url.url().left( 200 ) << result;
if( url.url() == "about:blank" )
{
return;
}
if( !result )
{
qWarning() << "article loaded unsuccessful";
return;
}
if( cfg.preferences.autoScrollToTargetArticle ) if( cfg.preferences.autoScrollToTargetArticle )
{ {