diff --git a/src/article_maker.cc b/src/article_maker.cc index 7d63f616aa..12290947f0 100644 --- a/src/article_maker.cc +++ b/src/article_maker.cc @@ -444,10 +444,9 @@ string ArticleMaker::makeEmptyPageHtml() const sptr< Dictionary::DataRequest > ArticleMaker::makePicturePage( string const & url ) const { - qDebug()<<"PICTuRE+++"<)" - + ""; + qDebug() << "PICTuRE+++" << url.c_str(); + string const result = + makeHtmlHeader( tr( "(picture)" ), QString(), true ) + R"()" + ""; sptr< Dictionary::DataRequestInstant > r = std::make_shared< Dictionary::DataRequestInstant >( true ); diff --git a/src/ui/mainwindow.cc b/src/ui/mainwindow.cc index ae295f10a6..8c5c733796 100644 --- a/src/ui/mainwindow.cc +++ b/src/ui/mainwindow.cc @@ -182,7 +182,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ): GlobalBroadcaster::instance()->setPreference( &cfg.preferences ); localSchemeHandler = new LocalSchemeHandler( articleNetMgr, this ); - QStringList htmlScheme = { "gdlookup","bword", "entry","gdpicture"}; + QStringList htmlScheme = { "gdlookup", "bword", "entry", "gdpicture" }; for ( const auto & localScheme : htmlScheme ) { QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( localScheme.toLatin1(), localSchemeHandler ); } @@ -190,7 +190,7 @@ MainWindow::MainWindow( Config::Class & cfg_ ): iframeSchemeHandler = new IframeSchemeHandler( this ); QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( "ifr", iframeSchemeHandler ); - QStringList localSchemes = { "gdau", "gico", "qrcx", "bres", "gdprg", "gdvideo", "gdtts" }; + QStringList localSchemes = { "gdau", "gico", "qrcx", "bres", "gdprg", "gdvideo", "gdtts" }; resourceSchemeHandler = new ResourceSchemeHandler( articleNetMgr, this ); for ( const auto & localScheme : localSchemes ) { QWebEngineProfile::defaultProfile()->installUrlSchemeHandler( localScheme.toLatin1(), resourceSchemeHandler );