mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-01 03:07:46 +02:00
Merge pull request #2482 from alicevision/fix/pushButton
[GraphEditor] AttributeItemDelegate: Return valid component for `PushButton`
This commit is contained in:
commit
92a8c106ce
1 changed files with 2 additions and 2 deletions
|
@ -193,8 +193,8 @@ RowLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
sourceComponent: {
|
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
|
return notComputed_component
|
||||||
}
|
}
|
||||||
switch (attribute.type) {
|
switch (attribute.type) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue