diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-24 15:58:51 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2022-03-25 08:28:53 +0100 |
commit | d52e1d609516d0573bea1acf2d73d811ff25f0e9 (patch) | |
tree | 25797598f905945cdc4e9ec674eb17445a0a479a | |
parent | fb8fc5ea31025425bd853c0453408e208af52e65 (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
Pick-to: dev 6.3 6.2
Change-Id: I23d94ccbef5b00c4c6837c88970a4e40b05a912a
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
-rw-r--r-- | src/qml/qml/qqml.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/qml/qml/qqml.cpp b/src/qml/qml/qqml.cpp index 598b780afb..b5ba3d778f 100644 --- a/src/qml/qml/qqml.cpp +++ b/src/qml/qml/qqml.cpp @@ -1040,8 +1040,7 @@ bool AOTCompiledContext::captureLookup(uint index, QObject *object) const return true; } - - return true; + return false; } bool AOTCompiledContext::captureQmlContextPropertyLookup(uint index) const |