Skip to content

Commit aa24e33

Browse files
committed
Don't change combobox on mouse scroll
This causes problems and is inconvenient, easy to change something by accident fixes QubesOS/qubes-issues#9675
1 parent a3e4d17 commit aa24e33

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

qubes_config/global_config/global_config.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,12 @@ def perform_setup(self):
438438
self.builder.get_object('thisdevice_scrolled_window'),
439439
])
440440

441+
# workaround the uncomfortable behavior with comboboxes: combobox
442+
# should not change item ID on random scrolling around
443+
for obj in self.builder.get_objects():
444+
if isinstance(obj, (Gtk.ComboBox, Gtk.ComboBoxText)):
445+
obj.connect('scroll-event', lambda *args: True)
446+
441447
self.progress_bar_dialog.update_progress(1)
442448
self.progress_bar_dialog.hide()
443449
self.progress_bar_dialog.destroy()

0 commit comments

Comments
 (0)