summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index a3a43e6..f1adc16 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -1947,6 +1947,13 @@ bool QDeclarativeEngine::importPlugin(const QString &filePath, const QString &ur
if (!engineInitialized || !typesRegistered) {
QPluginLoader loader(absoluteFilePath);
+ if (!loader.load()) {
+ if (qmlImportTrace()) {
+ qDebug() << "QDeclarativeEngine::importPlugin: " << loader.errorString();
+ }
+ return false;
+ }
+
if (QDeclarativeExtensionInterface *iface = qobject_cast<QDeclarativeExtensionInterface *>(loader.instance())) {
const QByteArray bytes = uri.toUtf8();
@@ -1965,6 +1972,8 @@ bool QDeclarativeEngine::importPlugin(const QString &filePath, const QString &ur
iface->initializeEngine(this, moduleId);
}
} else {
+ if (qmlImportTrace())
+ qDebug() << "QDeclarativeEngine::importPlugin: no DeclarativeExtensionInterface error";
return false;
}
}