From fc1f8cb464e3efcdcaf3485199b3130b9fff7598 Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 21 Mar 2019 16:15:51 +0100 Subject: [PATCH] QmlDesigner: Fix crash The gradient can be an expression. Change-Id: Ib48661f87862f63e5234bbd92ca2117457a0c84c Reviewed-by: Tim Jenssen --- .../qmldesigner/components/propertyeditor/gradientmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp index b2e25fa6d66..31cce3dc313 100644 --- a/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp +++ b/src/plugins/qmldesigner/components/propertyeditor/gradientmodel.cpp @@ -322,7 +322,7 @@ void GradientModel::setAnchorBackend(const QVariant &anchorBackend) m_itemNode = backendCasted->getItemNode(); if (m_itemNode.isValid() - && m_itemNode.modelNode().hasProperty(gradientPropertyName().toUtf8())) + && m_itemNode.modelNode().hasNodeProperty(gradientPropertyName().toUtf8())) m_gradientTypeName = m_itemNode.modelNode().nodeProperty(gradientPropertyName().toUtf8()).modelNode().simplifiedTypeName(); setupModel();