forked from qt-creator/qt-creator
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:
@@ -170,8 +170,6 @@ InternalNode::Pointer ModelPrivate::createNode(const QString &typeString,
|
||||
{
|
||||
if (typeString.isEmpty())
|
||||
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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user