use QUrl::fromLocalFile

This commit is contained in:
Marco Martin 2014-08-27 13:11:26 +02:00
parent 2a575c810d
commit 49bb894a21

View File

@ -141,7 +141,7 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept
return path;
}
}
return QUrl("file://" + allowedPaths.first() + "/org/kde/plasma/accessdenied/qmldir");
return QUrl::fromLocalFile( allowedPaths.first() + "/org/kde/plasma/accessdenied/qmldir");
}
qWarning() << "WARNING: Access denied for URL" << path << m_package.path();