Skip to content

Commit

Permalink
fix trigger behavior for ListViewWithRadioButtonType
Browse files Browse the repository at this point in the history
  • Loading branch information
CyAn84 committed Jan 7, 2025
1 parent cf270d9 commit a79a909
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/ui/qml/Controls2/ListViewWithRadioButtonType.qml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ ListView {

function triggerCurrentItem() {
var item = root.itemAtIndex(selectedIndex)
item.selectable.clicked()
if (item) {
item.selectable.clicked()
}
}

delegate: ColumnLayout {
Expand Down

0 comments on commit a79a909

Please sign in to comment.