summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-04-01 05:07:56 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-04-01 05:12:06 (GMT)
commit47b33bcb65b642d808251bed7e38fc36a3e89bfc (patch)
tree062b5f9c3af8cf290d6a7b8b02912ce2277c3fa4 /src
parent919ee9dd93ad382ddd813d58a356fd3f8d179046 (diff)
downloadQt-47b33bcb65b642d808251bed7e38fc36a3e89bfc.zip
Qt-47b33bcb65b642d808251bed7e38fc36a3e89bfc.tar.gz
Qt-47b33bcb65b642d808251bed7e38fc36a3e89bfc.tar.bz2
ModelNode::setObjectValue() must update the object cache.
Task-number: QTBUG-9509
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativelistmodel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativelistmodel.cpp b/src/declarative/util/qdeclarativelistmodel.cpp
index 1a28176..ce7681a 100644
--- a/src/declarative/util/qdeclarativelistmodel.cpp
+++ b/src/declarative/util/qdeclarativelistmodel.cpp
@@ -1273,6 +1273,8 @@ void ModelNode::setObjectValue(const QScriptValue& valuemap) {
value->setListValue(v);
} else {
value->values << v.toVariant();
+ if (objectCache)
+ objectCache->setValue(it.name().toUtf8(), value->values.last());
}
if (properties.contains(it.name()))
delete properties[it.name()];