HBox: fix error when setting firstButton sometimes
This commit is contained in:
parent
25101578cc
commit
beac0ce3dd
|
@ -67,11 +67,11 @@ Rectangle {
|
||||||
id: buttonRepeater
|
id: buttonRepeater
|
||||||
model: []
|
model: []
|
||||||
|
|
||||||
onItemAdded:
|
onItemAdded: if (index === 0 && box)
|
||||||
if (index === 0) firstButton = buttonRepeater.itemAt(0)
|
box.firstButton = buttonRepeater.itemAt(0)
|
||||||
|
|
||||||
onItemRemoved:
|
onItemRemoved: if (index === 0 && box)
|
||||||
if (index === 0) firstButton = null
|
box.firstButton = null
|
||||||
|
|
||||||
HButton {
|
HButton {
|
||||||
id: button
|
id: button
|
||||||
|
|
Loading…
Reference in New Issue
Block a user