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