Revert "check X-Plasma-RootPath as well for privates"

This reverts commit d7e0a9f0bc.
This commit is contained in:
Marco Martin 2014-08-12 10:34:07 +02:00
parent d7e0a9f0bc
commit bcf653b9d4

View File

@ -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");