mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
WebSites: Don't show query error messages for "file://" scheme
This commit is contained in:
parent
9a5ab81cd7
commit
685cdab704
13
website.cc
13
website.cc
|
@ -9,6 +9,7 @@
|
|||
#include <QDir>
|
||||
#include <QFileInfo>
|
||||
#include <QRegExp>
|
||||
#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();
|
||||
|
||||
|
|
Loading…
Reference in a new issue