aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaximilian Goldstein <max.goldstein@qt.io>2022-08-03 14:16:46 +0200
committerMaximilian Goldstein <max.goldstein@qt.io>2022-08-11 14:53:36 +0200
commite86a38f20f1b77ab2ee99de37e1f9724ce7cd14c (patch)
tree2d59ece4b5f3547da859eb89a5891774833908c4 /src
parent84dd339e2eb3385eb143f9d5ab282a135635052d (diff)
qmllint/importer: Fix hasSystemModule not being set properly
Previously we didn't set this flag properly if there were multiple modules that were imported. Change-Id: I05d81bc82f69e038a82131e20c23fb9dd497e9cc Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/qmlcompiler/qqmljsimporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qmlcompiler/qqmljsimporter.cpp b/src/qmlcompiler/qqmljsimporter.cpp
index aadd7b3707..244b8119e9 100644
--- a/src/qmlcompiler/qqmljsimporter.cpp
+++ b/src/qmlcompiler/qqmljsimporter.cpp
@@ -636,7 +636,7 @@ bool QQmlJSImporter::importHelper(const QString &module, AvailableTypes *types,
types->cppNames.insert(cacheEntry->cppNames);
types->staticModules << cacheEntry->staticModules;
- types->hasSystemModule = cacheEntry->hasSystemModule;
+ types->hasSystemModule |= cacheEntry->hasSystemModule;
// No need to import qml names for dependencies
if (!isDependency)