NComboBox: more warning fixes

This commit is contained in:
Ly-sec
2025-12-13 12:50:06 +01:00
parent c0cae715db
commit 0d132c5dc9
+3 -2
View File
@@ -119,6 +119,7 @@ RowLayout {
contentItem: ListView {
id: listView
property var comboBox: combo
clip: true
model: combo.popup.visible ? root.model : null
boundsBehavior: Flickable.StopAtBounds
@@ -210,8 +211,8 @@ RowLayout {
var item = root.getItem(delegateRect.index);
if (item && item.key !== undefined) {
root.selected(item.key);
root.comboBox.currentIndex = delegateRect.index;
root.comboBox.popup.close();
listView.comboBox.currentIndex = delegateRect.index;
listView.comboBox.popup.close();
}
}
}