summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2011-01-28 02:00:21 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2011-01-28 02:00:21 (GMT)
commitcb6b9ee680f792750d0cb265ea59ff3ff4643562 (patch)
tree4c735bd8cde722945b893b4aad389daca709254c /src/declarative/qml/qdeclarativeobjectscriptclass.cpp
parent547e2162c872ca5707f5bc54d06b3c39c9bd6477 (diff)
downloadQt-cb6b9ee680f792750d0cb265ea59ff3ff4643562.zip
Qt-cb6b9ee680f792750d0cb265ea59ff3ff4643562.tar.gz
Qt-cb6b9ee680f792750d0cb265ea59ff3ff4643562.tar.bz2
Ensure simple objects also get the appropriate property cache
Task-number: QTBUG-13849
Diffstat (limited to 'src/declarative/qml/qdeclarativeobjectscriptclass.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeobjectscriptclass.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
index 7701a23..ee47d0b 100644
--- a/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
+++ b/src/declarative/qml/qdeclarativeobjectscriptclass.cpp
@@ -166,8 +166,9 @@ QDeclarativeObjectScriptClass::queryProperty(QObject *obj, const Identifier &nam
QDeclarativeEnginePrivate *enginePrivate = QDeclarativeEnginePrivate::get(engine);
lastData = QDeclarativePropertyCache::property(engine, obj, name, local);
if ((hints & ImplicitObject) && lastData && lastData->revision != 0) {
+
QDeclarativeData *ddata = QDeclarativeData::get(obj);
- if (ddata && ddata->propertyCache && !ddata->propertyCache->isAllowedInRevision(lastData))
+ if (ddata && ddata->propertyCache && !ddata->propertyCache->isAllowedInRevision(lastData))
return 0;
}