From 8390467ac17f5b8b55b2549d0e60ff670c6b038a Mon Sep 17 00:00:00 2001
From: Marco Bubke <marco.bubke@nokia.com>
Date: Wed, 21 Apr 2010 19:10:18 +0200
Subject: [PATCH] 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
---
 src/plugins/qmldesigner/core/model/model.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/plugins/qmldesigner/core/model/model.cpp b/src/plugins/qmldesigner/core/model/model.cpp
index d3f6c2057e6..32bb0d6021d 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);
 
-- 
GitLab