diff --git a/src/plugins/qmldesigner/core/model/model.cpp b/src/plugins/qmldesigner/core/model/model.cpp index d3f6c2057e62dc3389407d78814851b31ffb74ff..32bb0d6021d02c2d1c28a40fd505428bf22d0d1c 100644 --- a/src/plugins/qmldesigner/core/model/model.cpp +++ b/src/plugins/qmldesigner/core/model/model.cpp @@ -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);