Commit 8390467a authored by Marco Bubke's avatar Marco Bubke Committed by Kai Koehne
Browse files

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
parent 06dba9b6
...@@ -170,8 +170,6 @@ InternalNode::Pointer ModelPrivate::createNode(const QString &typeString, ...@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment