Commit d6cbc673 authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

Fix parent item in the Form Editor

parent 4b8c4add
......@@ -332,7 +332,7 @@ void FormEditorScene::reparentItem(const QmlItemNode &node, const QmlItemNode &n
FormEditorItem *item = itemForQmlItemNode(node);
FormEditorItem *parentItem = 0;
if (newParent.isValid() && hasItemForQmlItemNode(newParent))
FormEditorItem *parentItem = itemForQmlItemNode(newParent);
parentItem = itemForQmlItemNode(newParent);
if (item->parentItem() != parentItem) {
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