Remove the exception for a invalid type in the node creation in the

model

All views should be now work with node without valid type.

Reviewed-by: kkoehne
This commit is contained in:
Marco Bubke
2010-04-21 19:10:18 +02:00
committed by Kai Koehne
parent 06dba9b6df
commit 8390467ac1

View File

@@ -170,8 +170,6 @@ InternalNode::Pointer ModelPrivate::createNode(const QString &typeString,
{ {
if (typeString.isEmpty()) if (typeString.isEmpty())
throw InvalidArgumentException(__LINE__, __FUNCTION__, __FILE__, tr("invalid type")); throw InvalidArgumentException(__LINE__, __FUNCTION__, __FILE__, tr("invalid type"));
if (!m_metaInfo.nodeMetaInfo(typeString).isValid())
throw InvalidArgumentException(__LINE__, __FUNCTION__, __FILE__, typeString);
InternalNode::Pointer newInternalNodePointer = InternalNode::create(typeString, majorVersion, minorVersion); InternalNode::Pointer newInternalNodePointer = InternalNode::create(typeString, majorVersion, minorVersion);