blob: 855a2939b5dedf36bf49c944f287f5c2524f7282 (
plain)
1 --- a/curses/netentry_curses.py
2 +++ b/curses/netentry_curses.py
3 @@ -538,11 +538,12 @@
4 self.bitrates = wireless.GetAvailableBitrates()
5 self.bitrates.append('auto')
6 self.bitrate_combo.set_list(self.bitrates)
7 - self.bitrate_combo.set_focus(
8 - self.bitrates.index(
9 - wireless.GetWirelessProperty(networkID, 'bitrate')
10 + if wireless.GetWirelessProperty(networkID, 'bitrate'):
11 + self.bitrate_combo.set_focus(
12 + self.bitrates.index(
13 + wireless.GetWirelessProperty(networkID, 'bitrate')
14 + )
15 )
16 - )
17 self.allow_lower_bitrates_chkbox.set_state(
18 to_bool(self.format_entry(networkID, 'allow_lower_bitrates'))
19 )
|