Commit 059859b5 authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner.formEditor: fixes rootFormEditorItem()

Previous implementation was broken.
parent d19475a9
......@@ -368,10 +368,8 @@ void FormEditorScene::reparentItem(const QmlItemNode &node, const QmlItemNode &n
FormEditorItem* FormEditorScene::rootFormEditorItem() const
QList<QGraphicsItem*> childItemList(m_formLayerItem->childItems());
if (!childItemList.isEmpty())
return FormEditorItem::fromQGraphicsItem(childItemList.first());
if (hasItemForQmlItemNode(editorView()->rootModelNode()))
return itemForQmlItemNode(editorView()->rootModelNode());
return 0;
Supports Markdown
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