From 4fff634d505eb1ed1ca5062cf169456035c69787 Mon Sep 17 00:00:00 2001 From: Dale Glass Date: Fri, 6 Jan 2023 17:30:13 +0100 Subject: [PATCH] Remove call to non-existing function close() in QML ComboBox This causes the following error: ComboBox.qml:53: ReferenceError: close is not defined And seems to be definitely incorrect. --- interface/resources/qml/controlsUit/ComboBox.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/resources/qml/controlsUit/ComboBox.qml b/interface/resources/qml/controlsUit/ComboBox.qml index 1a904df89d..cd1525657e 100644 --- a/interface/resources/qml/controlsUit/ComboBox.qml +++ b/interface/resources/qml/controlsUit/ComboBox.qml @@ -50,8 +50,8 @@ FocusScope { function previousItem() { root.currentHighLightedIndex = (root.currentHighLightedIndex + comboBox.count - 1) % comboBox.count; } function nextItem() { root.currentHighLightedIndex = (root.currentHighLightedIndex + comboBox.count + 1) % comboBox.count; } - function selectCurrentItem() { root.currentIndex = root.currentHighLightedIndex; close(); /*hideList();*/ } - function selectSpecificItem(index) { root.currentIndex = index; close();/*hideList();*/ } + function selectCurrentItem() { root.currentIndex = root.currentHighLightedIndex; /*hideList();*/ } + function selectSpecificItem(index) { root.currentIndex = index; /*hideList();*/ } Keys.onUpPressed: previousItem(); Keys.onDownPressed: nextItem();