From 685cdab7041441dc8459fe5d9f403ff6e66d4e3b Mon Sep 17 00:00:00 2001 From: Abs62 Date: Sat, 4 Mar 2017 15:02:13 +0300 Subject: [PATCH] WebSites: Don't show query error messages for "file://" scheme --- website.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/website.cc b/website.cc index c10b181e..c523bfca 100644 --- a/website.cc +++ b/website.cc @@ -9,6 +9,7 @@ #include #include #include +#include "gddebug.hh" namespace WebSite { @@ -333,7 +334,17 @@ void WebSiteArticleRequest::requestFinished( QNetworkReply * r ) } else - setErrorString( netReply->errorString() ); + { + if( netReply->url().scheme() == "file" ) + { + gdWarning( "WebSites: Failed loading article from \"%s\", reason: %s\n", dictPtr->getName().c_str(), + netReply->errorString().toUtf8().data() ); + } + else + { + setErrorString( netReply->errorString() ); + } + } netReply->deleteLater();