implify
Change-Id: I983400993050e2ebf735290387982845d27dc0d1
This commit is contained in:
parent
bb0d245d5b
commit
9802e9c6d1
@ -532,7 +532,6 @@ void AppletQuickItem::init()
|
||||
setHeight(d->qmlObject->rootObject()->property("height").value<qreal>());
|
||||
}
|
||||
|
||||
|
||||
//default fullrepresentation is our root main component, if none specified
|
||||
if (!d->fullRepresentation) {
|
||||
d->fullRepresentation = d->qmlObject->mainComponent();
|
||||
|
@ -149,10 +149,10 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept
|
||||
//obtain a string in the form foo/bar/baz.qml: ui/ gets discarded
|
||||
const QString &filename = components.join("/");
|
||||
|
||||
//qDebug() << "Returning" << QUrl::fromLocalFile(package.filePath(prefixForType(type, filename), filename));
|
||||
|
||||
QUrl ret = QUrl::fromLocalFile(package.filePath(prefixForType(type, filename), filename));
|
||||
|
||||
//qDebug() << "Returning" << ret;
|
||||
|
||||
if (ret.path().isEmpty()) {
|
||||
return path;
|
||||
}
|
||||
@ -160,6 +160,8 @@ QUrl PackageUrlInterceptor::intercept(const QUrl &path, QQmlAbstractUrlIntercept
|
||||
|
||||
//forbid to load random absolute paths
|
||||
} else {
|
||||
return path;
|
||||
//TODO: remove all of this?
|
||||
if (package.allowExternalPaths() || package.metadata().property("X-Plasma-RequiredExtensions").toString().contains(QStringLiteral("ExternalScripts"))) {
|
||||
return path;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user