Commit ff9a03b1 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.propertyEditor: crash fix

The stack trace from 4282 indicates that in fact currentState is invalid.
We should check for this.

Reviewed-by: Kai Koehne
Task-number: QTCREATORBUG-4282
parent 90679c06
......@@ -156,7 +156,7 @@ void PropertyEditorValue::setExpression(const QString &expression)
bool PropertyEditorValue::isInSubState() const
const QmlDesigner::QmlObjectNode objectNode(modelNode());
return objectNode.isValid() && objectNode.propertyAffectedByCurrentState(name());
return objectNode.isValid() && objectNode.currentState().isValid() && objectNode.propertyAffectedByCurrentState(name());
bool PropertyEditorValue::isBound() const
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