aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/jsruntime/qv4qobjectwrapper.cpp
diff options
context:
space:
mode:
authorErik Verbruggen <erik.verbruggen@qt.io>2016-07-19 13:37:01 +0200
committerErik Verbruggen <erik.verbruggen@qt.io>2016-07-19 12:32:48 +0000
commitac326046e1dffac5052cca1138078a26f34cf159 (patch)
treeb308ce8f8e240651fd78b44c523e02e93b40733a /src/qml/jsruntime/qv4qobjectwrapper.cpp
parentf743fc8feeef498dccf61264f6ad23d0db10f33b (diff)
QML: Fix property notifier registration for constant properties
Constant properties typically do not have change notification signals, so do not attempt to listen to those. Change-Id: I4b3622d014aa2f8b3794a63f78ada9806c53966b Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/qml/jsruntime/qv4qobjectwrapper.cpp')
-rw-r--r--src/qml/jsruntime/qv4qobjectwrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4qobjectwrapper.cpp b/src/qml/jsruntime/qv4qobjectwrapper.cpp
index a2da7d6d89..20179643fd 100644
--- a/src/qml/jsruntime/qv4qobjectwrapper.cpp
+++ b/src/qml/jsruntime/qv4qobjectwrapper.cpp
@@ -362,7 +362,7 @@ ReturnedValue QObjectWrapper::getProperty(ExecutionEngine *engine, QObject *obje
Scope scope(engine);
QV4::ScopedValue rv(scope, LoadProperty<ReadAccessor::Accessor>(engine, object, *property, nptr));
- if (captureRequired) {
+ if (captureRequired && !property->isConstant()) {
if (property->accessors->notifier) {
if (n && ep->propertyCapture)
ep->propertyCapture->captureProperty(n);