Merge pull request #2482 from alicevision/fix/pushButton

[GraphEditor] AttributeItemDelegate: Return valid component for `PushButton`
This commit is contained in:
Candice Bentéjac 2024-07-30 11:02:49 +02:00 committed by GitHub
commit 92a8c106ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -193,8 +193,8 @@ RowLayout {
Layout.fillWidth: true
sourceComponent: {
if (attribute.value === undefined)
{
// PushButtonParam always has value == undefined, so it needs to be excluded from this check
if (attribute.type != "PushButtonParam" && attribute.value === undefined) {
return notComputed_component
}
switch (attribute.type) {