QmlDesigner: Fix crash

Change-Id: Ibb6a14b4b684482b8c6098933a79929c2bd09add
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Thomas Hartmann
2020-09-04 10:35:25 +02:00
parent f9600b7335
commit 2f77a9bcfc

View File

@@ -334,6 +334,9 @@ static QList<QByteArray> prepareNonMcuProperties()
bool PropertyEditorValue::isAvailable() const bool PropertyEditorValue::isAvailable() const
{ {
if (!m_modelNode.isValid())
return true;
const QList<QByteArray> nonMcuProperties = prepareNonMcuProperties(); const QList<QByteArray> nonMcuProperties = prepareNonMcuProperties();
const QByteArray fontPrefix = {"font"}; const QByteArray fontPrefix = {"font"};