From 2e374dbd8c592bdf4d86a0514e91178729547582 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Sun, 24 Oct 2010 14:01:56 +0000 Subject: [PATCH] use a normal QNetworkAccessManager in case of plasmapackage:/ svn path=/trunk/KDE/kdebase/runtime/; revision=1189297 --- scriptengines/javascript/declarative/packageaccessmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scriptengines/javascript/declarative/packageaccessmanager.cpp b/scriptengines/javascript/declarative/packageaccessmanager.cpp index fb5b3ecbd..7bfbc5198 100644 --- a/scriptengines/javascript/declarative/packageaccessmanager.cpp +++ b/scriptengines/javascript/declarative/packageaccessmanager.cpp @@ -68,12 +68,12 @@ QNetworkReply *PackageAccessManager::createRequest(QNetworkAccessManager::Operat reqUrl.setScheme("file"); reqUrl.setPath(m_package->path()+"/contents/"+reqUrl.path()); request.setUrl(reqUrl); - return KIO::AccessManager::createRequest(op, request, outgoingData); + return QNetworkAccessManager::createRequest(op, request, outgoingData); } else if ((reqUrl.scheme() == "http" && !m_auth->authorizeRequiredExtension("http")) || ((reqUrl.scheme() == "file" || reqUrl.scheme() == "desktop") && !m_auth->authorizeRequiredExtension("localio")) || (!m_auth->authorizeRequiredExtension("networkio"))) { return new ErrorReply(op, req); - }else { + } else { return KIO::AccessManager::createRequest(op, req, outgoingData); } }