mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] fix : invalide value when reopening AttributeEditor
This commit is contained in:
parent
3f3f2e647d
commit
27aceb33e1
1 changed files with 8 additions and 1 deletions
|
@ -348,7 +348,14 @@ RowLayout {
|
|||
inputModel: attribute.values
|
||||
|
||||
Component.onCompleted: {
|
||||
currentIndex = find(attribute.value)
|
||||
// if value not in list, override the text and precise it is not valid
|
||||
var idx = find(attribute.value)
|
||||
if (idx === -1) {
|
||||
displayText = attribute.value
|
||||
validValue = false
|
||||
} else {
|
||||
currentIndex = idx
|
||||
}
|
||||
}
|
||||
|
||||
onEditingFinished: function(value) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue