Commit ed0095ca authored by Thomas Hartmann's avatar Thomas Hartmann

QmlDesigner: crash fix

instanceParent() can be invalid.

Change-Id: I804879491544500e20426a25515b1997022a102c
Reviewed-by: default avatarThomas Hartmann <Thomas.Hartmann@nokia.com>
parent b684f662
......@@ -115,7 +115,7 @@ void MoveManipulator::synchronizeParent(const QList<FormEditorItem*> &itemList,
void MoveManipulator::synchronizeInstanceParent(const QList<FormEditorItem*> &itemList)
{
if (m_view->model() && !m_itemList.isEmpty())
if (m_view->model() && !m_itemList.isEmpty() && m_itemList.first()->qmlItemNode().instanceParent().isValid())
synchronizeParent(itemList, m_itemList.first()->qmlItemNode().instanceParent());
}
......
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