summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMarco Bubke <marco.bubke@nokia.com>2011-01-24 14:55:22 +0100
committerMarco Bubke <marco.bubke@nokia.com>2011-01-24 16:07:06 +0100
commit247ca0a4398e2b6df9491a09c060219310b680fc (patch)
tree645f3cb8a84e40486414bb1e82b19e6aac023e9f /src
parentd6f90004514f57436ebf5142fc5ff0d02a42e31c (diff)
downloadqt-creator-247ca0a4398e2b6df9491a09c060219310b680fc.tar.gz
QmlDesigner.NodeInstances: Fix crash for reset Values
Task-number: QTCREATORBUG-3558
Diffstat (limited to 'src')
-rw-r--r--src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp b/src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp
index bb4000d658..9b1e80aac0 100644
--- a/src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp
+++ b/src/plugins/qmldesigner/designercore/instances/objectnodeinstance.cpp
@@ -862,7 +862,7 @@ QStringList propertyNameForWritableProperties(QObject *object, const QString &ba
for (int index = 0; index < metaObject->propertyCount(); ++index) {
QMetaProperty metaProperty = metaObject->property(index);
QDeclarativeProperty declarativeProperty(object, QLatin1String(metaProperty.name()));
- if (declarativeProperty.isValid() && declarativeProperty.isWritable() && declarativeProperty.propertyTypeCategory() == QDeclarativeProperty::Object) {
+ if (declarativeProperty.isValid() && !declarativeProperty.isWritable() && declarativeProperty.propertyTypeCategory() == QDeclarativeProperty::Object) {
if (declarativeProperty.name() != "parent") {
QObject *childObject = QDeclarativeMetaType::toQObject(declarativeProperty.read());
if (childObject)