You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-full-overlay/net-misc/wicd/files/wicd-1.7.3-bitrate-property...

20 lines
775 B

--- a/curses/netentry_curses.py
+++ b/curses/netentry_curses.py
@@ -538,11 +538,12 @@
self.bitrates = wireless.GetAvailableBitrates()
self.bitrates.append('auto')
self.bitrate_combo.set_list(self.bitrates)
- self.bitrate_combo.set_focus(
- self.bitrates.index(
- wireless.GetWirelessProperty(networkID, 'bitrate')
+ if wireless.GetWirelessProperty(networkID, 'bitrate'):
+ self.bitrate_combo.set_focus(
+ self.bitrates.index(
+ wireless.GetWirelessProperty(networkID, 'bitrate')
+ )
)
- )
self.allow_lower_bitrates_chkbox.set_state(
to_bool(self.format_entry(networkID, 'allow_lower_bitrates'))
)