Merge lp:~timur-adamow/wicd/wicd into lp:wicd/1.6

Proposed by Timur
Status: Needs review
Proposed branch: lp:~timur-adamow/wicd/wicd
Merge into: lp:wicd/1.6
Diff against target: 18 lines (+3/-5)
1 file modified
curses/netentry_curses.py (+3/-5)
To merge this branch: bzr merge lp:~timur-adamow/wicd/wicd
Reviewer Review Type Date Requested Status
Wicd-devel Pending
Review via email: mp+350446@code.launchpad.net

Commit message

Description of the change

Due to the bug #1184629, wicd-curses could crash after trying to find the index of the current bitrate and use it in a bitrate combobox. With this fix, wicd-curses will not attempt to select current bitrate if there is no current bitrate.

To post a comment you must log in.
lp:~timur-adamow/wicd/wicd updated
992. By Timur Adamov <email address hidden>

Fix bug #1184629

Revision history for this message
Guido Maria Serra (zeph1ro) wrote :

sorry Timur, I saw this now (I recently took over the project)

would you mind opening a new pull request against the git repo? (i just migrated from bzr)

Revision history for this message
Timur (timur-adamow) wrote :

> sorry Timur, I saw this now (I recently took over the project)
>
> would you mind opening a new pull request against the git repo? (i just
> migrated from bzr)

Thanks for the response.

I did what you asked me to. New pull request is available at https://code.launchpad.net/~timur-adamow/wicd/+git/wicd/+merge/373785.

Unmerged revisions

992. By Timur Adamov <email address hidden>

Fix bug #1184629

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'curses/netentry_curses.py'
2--- curses/netentry_curses.py 2012-11-17 18:12:25 +0000
3+++ curses/netentry_curses.py 2018-07-23 11:00:29 +0000
4@@ -538,11 +538,9 @@
5 self.bitrates = wireless.GetAvailableBitrates()
6 self.bitrates.append('auto')
7 self.bitrate_combo.set_list(self.bitrates)
8- self.bitrate_combo.set_focus(
9- self.bitrates.index(
10- wireless.GetWirelessProperty(networkID, 'bitrate')
11- )
12- )
13+ network_bitrate = wireless.GetWirelessProperty(networkID, 'bitrate')
14+ if (network_bitrate is not None):
15+ self.bitrate_combo.set_focus(self.bitrates.index(network_bitrate))
16 self.allow_lower_bitrates_chkbox.set_state(
17 to_bool(self.format_entry(networkID, 'allow_lower_bitrates'))
18 )

Subscribers

People subscribed via source and target branches

to status/vote changes: