diff --git a/src/plugins/qmldesigner/components/propertyeditor/siblingcombobox.cpp b/src/plugins/qmldesigner/components/propertyeditor/siblingcombobox.cpp index b1b54e90e15..31f8489652d 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/siblingcombobox.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/siblingcombobox.cpp @@ -81,7 +81,7 @@ void SiblingComboBox::setup() //We currently have no instanceChildren(). //So we double check here if the instanceParents are equal. foreach (const QmlItemNode &node, m_itemList) - if (node.instanceParent().modelNode() != m_itemNode.instanceParent().modelNode()) + if (node.isValid() && (node.instanceParent().modelNode() != m_itemNode.instanceParent().modelNode())) m_itemList.removeAll(node); disconnect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int)));