Permalink
Browse files

wicd: fix wicd-curses #954

  • Loading branch information...
1 parent 6cec322 commit 220de599ad3ecba14423289209a3e4e031037edf @Duncaen Duncaen committed Feb 15, 2015
Showing with 20 additions and 1 deletion.
  1. +19 −0 srcpkgs/wicd/patches/curses_bitrate_fix.patch
  2. +1 −1 srcpkgs/wicd/template
@@ -0,0 +1,19 @@
+--- curses/netentry_curses.py 2015-02-15 18:29:05.000000000 +0100
++++ curses/netentry_curses.py 2015-02-15 18:31:24.000000000 +0100
+@@ -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'))
+ )
@@ -1,7 +1,7 @@
# Template file for 'wicd'
pkgname=wicd
version=1.7.3
-revision=3
+revision=4
noarch=yes
build_options="systemd"
hostmakedepends="python python-setuptools python-Babel"

0 comments on commit 220de59

Please sign in to comment.