aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2021-12-02 13:55:16 +0100
committerUlf Hermann <ulf.hermann@qt.io>2021-12-03 08:20:52 +0100
commitc2f50cf90d143d96313ab3cfdbb9e4552a095cbb (patch)
treea1be8462f348eabe983fca470afc656f2f096384 /src/qml/qml/qqml.cpp
parent7d911956b9074184898c26c12f1280a98eadfc04 (diff)
Allow recursion in AOTCompiledContext::initLoadAttachedLookup()
Otherwise we cannot find attached types of the same name as the current document. Pick-to: 6.2 Change-Id: I927c49d30e466109cc1ef0c1439435581ee30a53 Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp
index 1075bdc273..dce46da145 100644
--- a/src/qml/qml/qqml.cpp
+++ b/src/qml/qml/qqml.cpp
@@ -1285,7 +1285,7 @@ void AOTCompiledContext::initLoadAttachedLookup(
if (const QQmlImportRef *importRef = qmlContext->imports()->query(import).importNamespace)
type = qmlContext->imports()->query(name, importRef).type;
} else {
- type = qmlContext->imports()->query(name).type;
+ type = qmlContext->imports()->query<QQmlImport::AllowRecursion>(name).type;
}
if (!type.isValid()) {