blob: f855ec5b1cc3c5b0fdb7e96114fda70d5c1c75ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
=== 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):
|