From f00bf25d5528e0b90c2683cdb9cf34a871e934f7 Mon Sep 17 00:00:00 2001 From: Xiao YiFang Date: Tue, 23 Aug 2022 18:47:58 +0800 Subject: [PATCH] Revert "opt: customized about:blank page" This reverts commit cee57d69ce859f4d54497be73d45682459c2bc2d. --- article_maker.cc | 4 ---- mainwindow.cc | 2 -- 2 files changed, 6 deletions(-) diff --git a/article_maker.cc b/article_maker.cc index 37957d37..d73ec036 100644 --- a/article_maker.cc +++ b/article_maker.cc @@ -267,10 +267,6 @@ sptr< Dictionary::DataRequest > ArticleMaker::makeDefinitionFor( #endif ).toUtf8().data(); } - else if( phrase.phrase == "about:blank"){ - //blank content - return makeEmptyPage(); - } else { // Not found diff --git a/mainwindow.cc b/mainwindow.cc index 0bdfd251..f084d9a1 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -1725,8 +1725,6 @@ ArticleView * MainWindow::createNewTab( bool switchToIt, view->setZoomFactor( cfg.preferences.zoomFactor ); - view->showDefinition( "about:blank", Instances::Group::HelpGroupId ); - #ifdef Q_OS_WIN32 view->installEventFilter( this ); #endif