QmlDesigner.propertyEditor: crash fix

Reviewed-by: Marco Bubke
This commit is contained in:
Thomas Hartmann
2011-04-05 16:41:49 +02:00
parent fc05015226
commit 1e986f2d52

View File

@@ -81,7 +81,7 @@ void SiblingComboBox::setup()
//We currently have no instanceChildren(). //We currently have no instanceChildren().
//So we double check here if the instanceParents are equal. //So we double check here if the instanceParents are equal.
foreach (const QmlItemNode &node, m_itemList) 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); m_itemList.removeAll(node);
disconnect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int))); disconnect(this, SIGNAL(currentIndexChanged (int)), this, SLOT(changeSelection(int)));