From b2576b12d31fe904c68871092f31a05a6ae14388 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Thu, 24 Mar 2022 15:58:51 +0100 Subject: QML: In captureLookup(), return false if it fails Otherwise the AOT-compiled code will assume the capture succeeded and fail to get notified when the value changes. This went unnoticed because it only applies to direct mode, the tests for which live in a separate repository. Fixes: QTBUG-102022 Change-Id: I23d94ccbef5b00c4c6837c88970a4e40b05a912a Reviewed-by: Fabian Kosmale (cherry picked from commit d52e1d609516d0573bea1acf2d73d811ff25f0e9) Reviewed-by: Qt Cherry-pick Bot --- src/qml/qml/qqml.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/qml/qml/qqml.cpp') diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index 8859dea711..728250dcf2 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -1065,8 +1065,7 @@ bool AOTCompiledContext::captureLookup(uint index, QObject *object) const return true; } - - return true; + return false; } bool AOTCompiledContext::captureQmlContextPropertyLookup(uint index) const -- cgit v1.2.3