diff options
author | Marco Bubke <marco.bubke@nokia.com> | 2011-01-24 14:55:22 +0100 |
---|---|---|
committer | Marco Bubke <marco.bubke@nokia.com> | 2011-01-24 16:07:06 +0100 |
commit | 247ca0a4398e2b6df9491a09c060219310b680fc (patch) | |
tree | 645f3cb8a84e40486414bb1e82b19e6aac023e9f /src | |
parent | d6f90004514f57436ebf5142fc5ff0d02a42e31c (diff) | |
download | qt-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.cpp | 2 |
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) |