opt: return directly when load about:blank or load unsuccessful

This commit is contained in:
Xiao YiFang 2022-07-28 21:23:52 +08:00
parent 66b10495dd
commit 086850467a

View file

@ -535,7 +535,19 @@ void ArticleView::loadFinished( bool result )
{
setZoomFactor( cfg.preferences.zoomFactor );
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 )
{