Commit 1d81709a authored by Thomas Hartmann's avatar Thomas Hartmann
Browse files

QmlDesigner: crashfix



If the node is a component it is not present as an item.

Task-number: QTCREATORBUG-7176
Change-Id: I426e2e8bfdf9e0eced566c60e2721d3630ef554a
Reviewed-by: default avatarAlessandro Portale <alessandro.portale@nokia.com>
parent b8cd8d33
......@@ -286,7 +286,7 @@ void FormEditorView::nodeIdChanged(const ModelNode& node, const QString& newId,
QmlModelView::nodeIdChanged(node, newId, oldId);
QmlItemNode itemNode(node);
if (itemNode.isValid()) {
if (itemNode.isValid() && node.nodeSourceType() == ModelNode::NodeWithoutSource) {
FormEditorItem *item = m_scene->itemForQmlItemNode(itemNode);
item->update();
}
......
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