QmlDesigner: Ignore excpetion in special corner case

If users do a ".." import the type name was "...XYZ".
This could be considered technical correct, but is really not
what we want to do in this case. The type is associated with
a QML file anyway in this case.

Change-Id: Icaac5cb237f4ae2a98f6458f119047cbdc87a64b
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2022-07-19 14:19:04 +02:00
parent 8ff3c0ac2b
commit fa29dcb1cd

View File

@@ -530,7 +530,8 @@ public:
qDebug() << metaInfo.isValid() << metaInfo.typeName();
qDebug() << metaInfo.directSuperClass().typeName();
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "test", "test");
if (!typeName.startsWith("..."))
throw RewritingException(__LINE__, __FUNCTION__, __FILE__, "test", "test");
}
typeName = QString::fromUtf8(metaInfo.typeName());