mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Merge pull request #57 from xiaoyifang/opt/blank-page
remove blank page load
This commit is contained in:
commit
60a4853e51
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue