summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlwatcher.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlwatcher.cpp')
-rw-r--r--src/declarative/qml/qmlwatcher.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlwatcher.cpp b/src/declarative/qml/qmlwatcher.cpp
index 59503de..a8a94c5 100644
--- a/src/declarative/qml/qmlwatcher.cpp
+++ b/src/declarative/qml/qmlwatcher.cpp
@@ -154,6 +154,7 @@ bool QmlWatcher::addWatch(int id, quint32 objectId, const QString &expr)
QmlContext *context = qmlContext(object);
if (context) {
QmlExpression *exprObj = new QmlExpression(context, expr, object);
+ exprObj->setNotifyOnValueChanged(true);
QmlWatchProxy *proxy = new QmlWatchProxy(id, exprObj, objectId, this);
exprObj->setParent(proxy);
m_proxies[id].append(proxy);