[pkg-wicd-maint] Bug#909142: Possible fix?
Sebastian Rasmussen
sebras at gmail.com
Mon Jul 22 13:05:42 BST 2019
Hi!
After some debugging and searching I ended up seeing
https://bugs.launchpad.net/wicd/+bug/1432423
where a proposed fix was provided as shown below.
I tested this patch and this fixed the issue for me.
If possible please apply this and pass it on to upstream
to be included in future releases. :)
/ Sebastian
--- netentry_curses.py 2019-07-22 13:59:13.750447860 +0200
+++ /tmp/netentry_curses.py 2015-04-14 17:49:43.000000000 +0200
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/python2
"""
netentry_curses -- everyone's favorite networks settings dialogs... in text
form!
@@ -538,12 +538,16 @@ class WirelessSettingsDialog(AdvancedSet
self.bitrates = wireless.GetAvailableBitrates()
self.bitrates.append('auto')
self.bitrate_combo.set_list(self.bitrates)
- if wireless.GetWirelessProperty(networkID, 'bitrate'):
+
+ # bitrate property is sometimes None
+ chosen_bitrate = wireless.GetWirelessProperty(networkID, 'bitrate')
+ if chosen_bitrate not in self.bitrates:
+ chosen_bitrate = 'auto'
+
self.bitrate_combo.set_focus(
- self.bitrates.index(
- wireless.GetWirelessProperty(networkID, 'bitrate')
- )
+ self.bitrates.index(chosen_bitrate)
)
+
self.allow_lower_bitrates_chkbox.set_state(
to_bool(self.format_entry(networkID, 'allow_lower_bitrates'))
)
More information about the pkg-wicd-maint
mailing list