From 36ce1490fc541489f9091e9d91234aeac4f9df90 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 22 Sep 2017 15:55:42 +0200 Subject: Don't reject plugin-only qmldir files On QQmlImportsPrivate::updateQmldirContent we need to check if the new module has actually been established after figuring out that it doesn't have any components or scripts. If it has, then we shouldn't fail, as obviously a plugin has been loaded. We don't need to check the component and script versions in that case, as plugins don't have separate versions. Change-Id: Ie328b59038fe65c3f6a2eeecfe969927bba6cd68 Reviewed-by: Lars Knoll --- tests/auto/qml/qqmltypeloader/data/test_intercept.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/qml/qqmltypeloader/data/test_intercept.qml') diff --git a/tests/auto/qml/qqmltypeloader/data/test_intercept.qml b/tests/auto/qml/qqmltypeloader/data/test_intercept.qml index 091fbe7f49..0d64cb7e28 100644 --- a/tests/auto/qml/qqmltypeloader/data/test_intercept.qml +++ b/tests/auto/qml/qqmltypeloader/data/test_intercept.qml @@ -41,7 +41,7 @@ ListView { width: ListView.view.width height: 100 asynchronous: true - source: "Intercept.qml" + source: index == 0 ? "Intercept.qml" : "GenericView.qml" onLoaded: { test.loaded++ -- cgit v1.2.3