Workaround seems to have been accidentally disabled

This workaround is needed for applet internal qmldirs to be loaded.

Fixes crasher in notifications applet.
This commit is contained in:
Sebastian Kügler 2014-01-26 23:24:07 +01:00
parent 3c0007db22
commit 94540a4262

View File

@ -58,7 +58,7 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept
if (path.scheme() == QStringLiteral("plasmapackage")) { if (path.scheme() == QStringLiteral("plasmapackage")) {
//FIXME: this is incorrect but works around a bug in qml in resolution of urls of qmldir files //FIXME: this is incorrect but works around a bug in qml in resolution of urls of qmldir files
if (0&&type == QQmlAbstractUrlInterceptor::QmldirFile) { if (type == QQmlAbstractUrlInterceptor::QmldirFile) {
return QUrl(m_package.filePath(0, path.path())); return QUrl(m_package.filePath(0, path.path()));
} else { } else {
return QUrl::fromLocalFile(m_package.filePath(0, path.path())); return QUrl::fromLocalFile(m_package.filePath(0, path.path()));