From ab2c1db889c4e7ed4892b3831549a9245e6935f7 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Thu, 21 Apr 2022 08:12:44 +0800 Subject: [PATCH] remove blank page load --- articleview.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/articleview.cc b/articleview.cc index c96d198f..635c0bc9 100644 --- a/articleview.cc +++ b/articleview.cc @@ -333,14 +333,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;