diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-02 13:55:16 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-12-03 08:20:52 +0100 |
commit | c2f50cf90d143d96313ab3cfdbb9e4552a095cbb (patch) | |
tree | a1be8462f348eabe983fca470afc656f2f096384 /src/qml/qml/qqml.cpp | |
parent | 7d911956b9074184898c26c12f1280a98eadfc04 (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.cpp | 2 |
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()) { |