aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/config.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index 3328a168..0245a4f4 100644
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -55,10 +55,9 @@ class configSelection:
def checkValues(self):
if self.parent.value < 0:
- self.parent.value = 0
-
- if(self.parent.value >= (len(self.parent.vals) - 1)):
- self.parent.value = len(self.parent.vals) - 1
+ self.parent.value = len(self.parent.vals) - 1
+ elif(self.parent.value > (len(self.parent.vals) - 1)):
+ self.parent.value = 0
def cancel(self):
self.parent.reload()