forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user