mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
opt: rearrange some code execution order
This commit is contained in:
parent
9315dda365
commit
2f48993594
|
@ -440,19 +440,16 @@ void ArticleView::inspectElement()
|
|||
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;
|
||||
}
|
||||
|
||||
if ( !result ) {
|
||||
qWarning() << "article loaded unsuccessful";
|
||||
return;
|
||||
}
|
||||
QUrl url = webview->url();
|
||||
if ( url.url() == "about:blank" ) {
|
||||
return;
|
||||
}
|
||||
qDebug() << "article view loaded url:" << url.url().left( 50 ) << result;
|
||||
|
||||
if ( cfg.preferences.autoScrollToTargetArticle ) {
|
||||
QString const scrollTo = Utils::Url::queryItemValue( url, "scrollto" );
|
||||
|
|
Loading…
Reference in a new issue