diff --git a/lib/documentview/documentview.cpp b/lib/documentview/documentview.cpp --- a/lib/documentview/documentview.cpp +++ b/lib/documentview/documentview.cpp @@ -539,6 +539,11 @@ } disconnect(d->mDocument.data(), nullptr, this, nullptr); } + + // because some loading will be going on right now, also display the indicator right now + // it will be hidden again in slotBusyChanged() + d->showLoadingIndicator(); + d->mSetup = setup; d->mDocument = DocumentFactory::instance()->load(url); connect(d->mDocument.data(), &Document::busyChanged, this, &DocumentView::slotBusyChanged); @@ -551,7 +556,6 @@ if (messageViewAdapter) { messageViewAdapter->setInfoMessage(QString()); } - d->showLoadingIndicator(); connect(d->mDocument.data(), &Document::kindDetermined, this, &DocumentView::finishOpenUrl); } else {