forked from qt-creator/qt-creator
QmlDesigner: Fix crash
Change-Id: Ibb6a14b4b684482b8c6098933a79929c2bd09add Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -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"};
|
||||||
|
Reference in New Issue
Block a user