Commit 8c74bc10 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by con

QmlDesigner.statesEditor: crash fix

If the current state is deleted we have to go to the base state
to stay in a valid state.

Reviewed-by: Kai Koehne
parent 43a10b9d
......@@ -264,6 +264,8 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
m_lastIndex = propertyParent.indexOf(removedNode);
if (removedNode == currentState())
void StatesEditorView::nodeRemoved(const ModelNode & /*removedNode*/, const NodeAbstractProperty &parentProperty, PropertyChangeFlags /*propertyChange*/)
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