From bcf653b9d40f7cc89570465a450fe9e109efb8b6 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Tue, 12 Aug 2014 10:34:07 +0200 Subject: [PATCH] Revert "check X-Plasma-RootPath as well for privates" This reverts commit d7e0a9f0bcf5232caf689debeacc9ca38c46aeb1. --- src/plasmaquick/packageurlinterceptor.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plasmaquick/packageurlinterceptor.cpp b/src/plasmaquick/packageurlinterceptor.cpp index 440659d7a..f1e8adcaa 100644 --- a/src/plasmaquick/packageurlinterceptor.cpp +++ b/src/plasmaquick/packageurlinterceptor.cpp @@ -129,8 +129,7 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept QString pathCheck(path.path()); pathCheck = pathCheck.replace(QRegExp(".*org/kde/plasma/private/(.*)/.*"), "org.kde.plasma.\\1"); - if (pathCheck == m_package.metadata().pluginName() || - pathCheck == m_package.metadata().property("X-Plasma-RootPath").toString()) { + if (pathCheck == m_package.metadata().pluginName()) { return path; } else { return QUrl("file://" + allowed + "/org/kde/plasma/accessdenied/qmldir");