Commit 37c01b39 authored by Thomas Hartmann's avatar Thomas Hartmann Committed by Marco Bubke
Browse files

QmlDesigner.formEditor: do not show items from a delegate (2)

We also have to check for nodeSourceType() if a new node is created.

Task-number: QTCREATORBUG-5228
Change-Id: Ifccdcb29141c44c176b1a5292fd118e2af55ca5e

Reviewed-by: default avatarQt Sanity Bot <>
Reviewed-by: default avatarMarco Bubke <>
parent 6d8d70d1
......@@ -134,7 +134,8 @@ void FormEditorView::nodeCreated(const ModelNode &createdNode)
ModelNode node(createdNode);
if (QmlItemNode(node).isValid()) //only setup QmlItems
//If the node has source for components/custom parsers we ignore it.
if (QmlItemNode(node).isValid() && nextNode.modelNode().nodeSourceType() == ModelNode::NodeWithoutSource) //only setup QmlItems
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