summaryrefslogtreecommitdiffstats
path: root/extra/source/wicd/wicd-1421918.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/source/wicd/wicd-1421918.patch')
-rw-r--r--extra/source/wicd/wicd-1421918.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/extra/source/wicd/wicd-1421918.patch b/extra/source/wicd/wicd-1421918.patch
new file mode 100644
index 000000000..2428f011b
--- /dev/null
+++ b/extra/source/wicd/wicd-1421918.patch
@@ -0,0 +1,15 @@
+=== modified file 'curses/wicd-curses.py'
+--- curses/wicd-curses.py 2014-12-21 16:57:33 +0000
++++ curses/wicd-curses.py 2015-02-24 23:41:01 +0000
+@@ -532,7 +532,10 @@
+ def get_selected_profile(self):
+ """Get the selected wired profile"""
+ loc = self.get_focus()[1]
+- return self.theList[loc]
++ if len(self.theList) > loc:
++ return self.theList[loc]
++ else:
++ return self.theList[-1]
+
+
+ class AdHocDialog(Dialog2):