Skip to content

Commit

Permalink
Merge pull request #57 from xiaoyifang/opt/blank-page
Browse files Browse the repository at this point in the history
remove blank page load
  • Loading branch information
xiaoyifang authored Apr 26, 2022
2 parents 7350b94 + ab2c1db commit 60a4853
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions articleview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 60a4853

Please sign in to comment.