Commit f6dab5c0 authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner.FormeEditor: Crash fix

The model can already be detached when calling delayedReset.
In this case we just do nothing.

Change-Id: I889fcc4e267dac3403c2e35b8f77b1e4fb5b8050
Reviewed-by: default avatarTim Jenssen <tim.jenssen@digia.com>
parent f1ca76f6
......@@ -646,7 +646,7 @@ void FormEditorView::delayedReset()
m_resizeTool->clear();
m_dragTool->clear();
m_scene->clearFormEditorItems();
if (QmlItemNode::isValidQmlItemNode(rootModelNode()))
if (isAttached() && QmlItemNode::isValidQmlItemNode(rootModelNode()))
setupFormEditorItemTree(rootModelNode());
}
......
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