diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-17 16:34:16 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2020-09-17 16:42:07 +0200 |
commit | 845bbb99a41a3e4f05c2b3d05d6db748c825dca0 (patch) | |
tree | 40545a7ca376bd1d9a74376e870629a38836c686 /src/qml/jsruntime | |
parent | 073a4d9e4bda3678f6ae3f2ac41c291c3a6dba3e (diff) |
Don't capture bindable properties
We don't need notify signals for those.
Change-Id: If78329d1c9e98aee3fb9cd028963a881179ba02f
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/jsruntime')
-rw-r--r-- | src/qml/jsruntime/qv4qobjectwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp index ee3be6fcdc..b30d88359b 100644 --- a/src/qml/jsruntime/qv4qobjectwrapper.cpp +++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp @@ -261,7 +261,7 @@ ReturnedValue QObjectWrapper::getProperty(ExecutionEngine *engine, QObject *obje QQmlEnginePrivate *ep = engine->qmlEngine() ? QQmlEnginePrivate::get(engine->qmlEngine()) : nullptr; - if (ep && ep->propertyCapture && !property->isConstant()) + if (ep && ep->propertyCapture && !property->isConstant() && !property->isBindable()) ep->propertyCapture->captureProperty(object, property->coreIndex(), property->notifyIndex()); if (property->isVarProperty()) { |