Commit 4dfa4504 authored by Laurent Montel's avatar Laurent Montel 😁

Reverse logic

parent d82046d7
...@@ -46,7 +46,9 @@ LoadExternalReferencesUrlInterceptor::~LoadExternalReferencesUrlInterceptor() ...@@ -46,7 +46,9 @@ LoadExternalReferencesUrlInterceptor::~LoadExternalReferencesUrlInterceptor()
bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info) bool LoadExternalReferencesUrlInterceptor::interceptRequest(QWebEngineUrlRequestInfo &info)
{ {
if (!d->mAllowLoadExternalReference) { if (d->mAllowLoadExternalReference) {
return false;
} else {
if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage if (info.resourceType() == QWebEngineUrlRequestInfo::ResourceTypeImage
&& !info.requestUrl().isLocalFile() && !info.requestUrl().isLocalFile()
&& (info.requestUrl().scheme() != QLatin1String("cid"))) { && (info.requestUrl().scheme() != QLatin1String("cid"))) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment