From c87b4abdc09f3ef522941d4f2908792165e2cb4c Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 26 Jan 2021 09:14:05 +0100 Subject: QmlCompiler: Return after importing a script If we don't return there, the newly imported script is promptly overwritten by an invalid module. Change-Id: I788a7275e2c190a20c176da35f5c76ac9f6ad02b Reviewed-by: Fabian Kosmale --- src/qmlcompiler/qqmljsimportvisitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/qmlcompiler') diff --git a/src/qmlcompiler/qqmljsimportvisitor.cpp b/src/qmlcompiler/qqmljsimportvisitor.cpp index d5b5acd06b..5d858229dd 100644 --- a/src/qmlcompiler/qqmljsimportvisitor.cpp +++ b/src/qmlcompiler/qqmljsimportvisitor.cpp @@ -320,7 +320,7 @@ bool QQmlJSImportVisitor::visit(QQmlJS::AST::UiImport *import) const auto scope = m_importer->importFile(path.canonicalFilePath()); m_rootScopeImports.insert(prefix.isEmpty() ? scope->internalName() : prefix, scope); } - + return true; } QString path {}; -- cgit v1.2.3