From 2f77a9bcfca84458dce93c63b0eaae7c3140b075 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Fri, 4 Sep 2020 10:35:25 +0200 Subject: [PATCH] QmlDesigner: Fix crash Change-Id: Ibb6a14b4b684482b8c6098933a79929c2bd09add Reviewed-by: Thomas Hartmann --- .../components/propertyeditor/propertyeditorvalue.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp index 2ecb0fa3b21..06b3f482589 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/propertyeditorvalue.cpp @@ -334,6 +334,9 @@ static QList prepareNonMcuProperties() bool PropertyEditorValue::isAvailable() const { + if (!m_modelNode.isValid()) + return true; + const QList nonMcuProperties = prepareNonMcuProperties(); const QByteArray fontPrefix = {"font"};