aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqml.cpp
diff options
context:
space:
mode:
authorUlf Hermann <ulf.hermann@qt.io>2022-03-24 15:58:51 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2022-03-25 18:39:23 +0000
commitb2576b12d31fe904c68871092f31a05a6ae14388 (patch)
tree0e9b12383c30a7c3c85129a19565311be3a6d3c4 /src/qml/qml/qqml.cpp
parentdc6b39fb2e30705a8a46569a60094370a641f82d (diff)
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 <fabian.kosmale@qt.io> (cherry picked from commit d52e1d609516d0573bea1acf2d73d811ff25f0e9) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/qml/qml/qqml.cpp')
-rw-r--r--src/qml/qml/qqml.cpp3
1 files changed, 1 insertions, 2 deletions
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