forked from qt-creator/qt-creator
QmlDesigner: Fix missing validation
Change-Id: Ic8663d6c44cadbf3678ae564ec91572998d6d236 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -2487,6 +2487,9 @@ bool NodeMetaInfo::isQmlComponent() const
|
||||
using namespace Storage::Info;
|
||||
return isBasedOnCommonType<QML, Component>(m_projectStorage, m_typeId);
|
||||
} else {
|
||||
if (!isValid())
|
||||
return false;
|
||||
|
||||
auto type = m_privateData->qualfiedTypeName();
|
||||
|
||||
return type == "Component" || type == "Qt.Component" || type == "QtQuick.Component"
|
||||
|
Reference in New Issue
Block a user