Let the designer start nodes which have invalid meta info

This is only a workaround!
This commit is contained in:
Marco Bubke
2010-04-07 21:03:53 +02:00
committed by Kai Koehne
parent bbaf3b18e7
commit 299f2be2f4
11 changed files with 40 additions and 44 deletions

View File

@@ -116,7 +116,7 @@ void ComponentView::searchForComponentAndAddToList(const ModelNode &node)
item->setEditable(false);
m_standardItemModel->appendRow(item);
}
} else if (node.metaInfo().isComponent() && !m_componentList.contains(node.type())) {
} else if (node.metaInfo().isValid() && node.metaInfo().isComponent() && !m_componentList.contains(node.type())) {
m_componentList.append(node.type());
m_componentList.sort();
m_listChanged = true;