Commit 76f837c7 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlPuppet: crashfix for puppet

We have to set a value when creating a dynamic property.
Otherwise the metacall triggered latter might crash when trying
to compare old and new value.
Task-number: QTCREATORBUG-4088
parent 96f82f56
......@@ -61,6 +61,7 @@ NodeInstanceMetaObject::NodeInstanceMetaObject(const ObjectNodeInstancePointer &
void NodeInstanceMetaObject::createNewProperty(const QString &name)
int id = createProperty(name.toLatin1(), 0);
setValue(id, QVariant());
Q_ASSERT(id >= 0);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment