Skip to content
Snippets Groups Projects
Commit 8c74bc10 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by con
Browse files

QmlDesigner.statesEditor: crash fix

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

Task-Nr: QTCREATORBUG-4339
Reviewed-by: Kai Koehne
parent 43a10b9d
No related branches found
No related tags found
No related merge requests found
......@@ -264,6 +264,8 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
m_lastIndex = propertyParent.indexOf(removedNode);
}
}
if (removedNode == currentState())
setCurrentState(baseState());
}
void StatesEditorView::nodeRemoved(const ModelNode & /*removedNode*/, const NodeAbstractProperty &parentProperty, PropertyChangeFlags /*propertyChange*/)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment