QmlDesigner: Do not throw if metainfo is invalid

Task-number: QDS-7348
Change-Id: I96433369ad0e013d4fa62df297ade16084f8bc6a
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-08-17 09:24:52 +02:00
parent 43bf516d10
commit b2567b5e1d

View File

@@ -531,7 +531,8 @@ public:
qDebug() << metaInfo.isValid() << metaInfo.typeName();
qDebug() << metaInfo.directSuperClass().typeName();
if (!typeName.startsWith("...") && m_model == m_model->metaInfoProxyModel())
if (!typeName.startsWith("...") && m_model == m_model->metaInfoProxyModel()
&& metaInfo.isValid())
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "test", "test");
}