entries: fix EnumerationEntry disable_scroll_wheel

pull/2277/merge
Simon Renblad 2024-04-11 11:20:22 +08:00 committed by Sébastien Bourdeauducq
parent c4892cf285
commit f9a447e8e0
1 changed files with 1 additions and 1 deletions

View File

@ -202,7 +202,6 @@ class EnumerationEntry(QtWidgets.QWidget):
def __init__(self, argument):
QtWidgets.QWidget.__init__(self)
disable_scroll_wheel(self)
layout = QtWidgets.QHBoxLayout()
self.setLayout(layout)
procdesc = argument["desc"]
@ -221,6 +220,7 @@ class EnumerationEntry(QtWidgets.QWidget):
self.btn_group.idClicked.connect(submit)
else:
self.combo_box = QtWidgets.QComboBox()
disable_scroll_wheel(self.combo_box)
self.combo_box.addItems(choices)
idx = choices.index(argument["state"])
self.combo_box.setCurrentIndex(idx)