NComboBox: fix warning

This commit is contained in:
Ly-sec
2025-12-13 12:38:45 +01:00
parent 6da1e4d117
commit c0cae715db
+3 -2
View File
@@ -17,6 +17,7 @@ RowLayout {
property string placeholder: ""
readonly property real preferredHeight: Style.baseWidgetSize * 1.1 * Style.uiScaleRatio
readonly property var comboBox: combo
signal selected(string key)
@@ -209,8 +210,8 @@ RowLayout {
var item = root.getItem(delegateRect.index);
if (item && item.key !== undefined) {
root.selected(item.key);
combo.currentIndex = delegateRect.index;
combo.popup.close();
root.comboBox.currentIndex = delegateRect.index;
root.comboBox.popup.close();
}
}
}