forked from qt-creator/qt-creator
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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user