forked from qt-creator/qt-creator
QmlDesigner: Fix missing validation
Fixes: QTCREATORBUG-28672
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>
(cherry picked from commit 571d822c7b
)
Reviewed-by: Robert Löhning <robert.loehning@qt.io>
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
committed by
Robert Löhning
parent
455f9f6911
commit
9429f710da
@@ -2491,6 +2491,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