QmlDesigner: Fix for PropertyEditor in MCU project

- Fixed bug with childless items properties

Change-Id: I660dc8d82d693c7e1b3f0e94fa040d61675df6f8
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
Aleksei German
2020-11-02 17:20:01 +01:00
parent e8e5f4e7be
commit 9a73a1da0f

View File

@@ -300,7 +300,9 @@ bool PropertyEditorValue::isAvailable() const
if (QmlDesigner::QmlItemNode::isValidQmlItemNode(m_modelNode)) {
const bool itemHasChildren = QmlDesigner::QmlItemNode(m_modelNode).hasChildren();
if (allowedItemProps.allowChildren == itemHasChildren)
if (itemHasChildren)
return allowedItemProps.allowChildren
return true;
}
}