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>
This commit is contained in:
Maximilian Goldstein 2022-08-03 14:16:46 +02:00
parent 84dd339e2e
commit e86a38f20f
1 changed files with 1 additions and 1 deletions

View File

@ -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)