system-config-printer/system-config-printer-serial-widgets.patch

14 lines
787 B
Diff
Raw Normal View History

diff -up system-config-printer-1.1.16/system-config-printer.py.serial-widgets system-config-printer-1.1.16/system-config-printer.py
--- system-config-printer-1.1.16/system-config-printer.py.serial-widgets 2010-01-18 17:01:04.326559283 +0000
+++ system-config-printer-1.1.16/system-config-printer.py 2010-01-18 17:01:24.700559444 +0000
@@ -5949,6 +5949,9 @@ class NewPrinterGUI(GtkGUI):
break
iter = model.iter_next(iter)
nr += 1
+
+ if not iter:
+ widget.set_active (0)
else: # use optionvalues
nr = optionvalues.index(
option_dict[name])