mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-28 17:57:16 +02:00
[GraphEditor] AttributeItemDelegate: Return valid component for PushButton
The value of a `PushButtonParam` being always `None`, it is necessary to check that the type of the component is not `PushButtonParam` before comparing its value to `undefined`. Otherwise, any `PushButtonParam` will always be represented by a "notComputed" component.
This commit is contained in:
parent
d7d259afa3
commit
45e6f43c40
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue