From 94540a426239279d817ba88bb72bcf07050bc052 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20K=C3=BCgler?= Date: Sun, 26 Jan 2014 23:24:07 +0100 Subject: [PATCH] Workaround seems to have been accidentally disabled This workaround is needed for applet internal qmldirs to be loaded. Fixes crasher in notifications applet. --- src/plasmaquick/packageurlinterceptor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plasmaquick/packageurlinterceptor.cpp b/src/plasmaquick/packageurlinterceptor.cpp index 04d4065d0..71699d7eb 100644 --- a/src/plasmaquick/packageurlinterceptor.cpp +++ b/src/plasmaquick/packageurlinterceptor.cpp @@ -58,7 +58,7 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept if (path.scheme() == QStringLiteral("plasmapackage")) { //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())); } else { return QUrl::fromLocalFile(m_package.filePath(0, path.path()));