Revert "check X-Plasma-RootPath as well for privates"
This reverts commit d7e0a9f0bc
.
This commit is contained in:
parent
d7e0a9f0bc
commit
bcf653b9d4
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user