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
crashed.

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