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

QmlDesigner.statesEditorView: Crash fix

The removed node is propably not a state.
parent 219332fd
...@@ -243,8 +243,8 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode) ...@@ -243,8 +243,8 @@ void StatesEditorView::nodeAboutToBeRemoved(const ModelNode &removedNode)
if (debug) if (debug)
qDebug() << __FUNCTION__; qDebug() << __FUNCTION__;
removeModelState(removedNode); if (QmlModelState(removedNode).isValid())
removeModelState(removedNode);
QmlModelView::nodeAboutToBeRemoved(removedNode); QmlModelView::nodeAboutToBeRemoved(removedNode);
} }
......
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