HBox: fix error when setting firstButton sometimes
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user