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

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-on: http://codereview.qt.nokia.com/901Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarMarco Bubke <marco.bubke@nokia.com>
parent 6d8d70d1
......@@ -134,7 +134,8 @@ void FormEditorView::nodeCreated(const ModelNode &createdNode)
{
QmlModelView::nodeCreated(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
setupFormEditorItemTree(QmlItemNode(node));
}
......
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