forked from qt-creator/qt-creator
QmlDesigner: crashfix
If the node is a component it is not present as an item. Task-number: QTCREATORBUG-7176 Change-Id: I426e2e8bfdf9e0eced566c60e2721d3630ef554a Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user