Merge pull request #57 from xiaoyifang/opt/blank-page

remove blank page load
This commit is contained in:
xiaoyifang 2022-04-26 20:38:56 +08:00 committed by GitHub
commit 60a4853e51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -335,14 +335,14 @@ ArticleView::ArticleView( QWidget * parent, ArticleNetworkAccessManager & nm, Au
// Load the default blank page instantly, so there would be no flicker.
QString contentType;
QUrl blankPage( "gdlookup://localhost?blank=1" );
// QUrl blankPage( "gdlookup://localhost?blank=1" );
sptr< Dictionary::DataRequest > r = articleNetMgr.getResource( blankPage,
contentType );
// sptr< Dictionary::DataRequest > r = articleNetMgr.getResource( blankPage,
// contentType );
ui.definition->setHtml( QString::fromUtf8( &( r->getFullData().front() ),
r->getFullData().size() ),
blankPage );
// ui.definition->setHtml( QString::fromUtf8( &( r->getFullData().front() ),
// r->getFullData().size() ),
// blankPage );
expandOptionalParts = cfg.preferences.alwaysExpandOptionalParts;