Commit cf0d90f8 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.propertyEditor: crash fix

Setting an empty expression on a value not defined in the model

Task-number: QTCREATORBUG-4312
parent 5515703d
......@@ -511,6 +511,9 @@ void PropertyEditor::changeExpression(const QString &name)
if (value->expression().isEmpty())
if (fxObjectNode.expression(name) != value->expression() || !fxObjectNode.propertyAffectedByCurrentState(name))
fxObjectNode.setBindingProperty(name, value->expression());
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