summaryrefslogtreecommitdiff
path: root/net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch')
-rw-r--r--net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch b/net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch
new file mode 100644
index 000000000000..855a2939b5de
--- /dev/null
+++ b/net-misc/wicd/files/wicd-1.7.3-bitrate-property.patch
@@ -0,0 +1,19 @@
+--- 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'))
+ )