From c0cae715dbcaf39d8f4f7a51bab0408f56e6ee26 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Sat, 13 Dec 2025 12:38:45 +0100 Subject: [PATCH] NComboBox: fix warning --- Widgets/NComboBox.qml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Widgets/NComboBox.qml b/Widgets/NComboBox.qml index 21405b310..f84ea9585 100644 --- a/Widgets/NComboBox.qml +++ b/Widgets/NComboBox.qml @@ -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(); } } }