aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/UsageConfig.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python/Components/UsageConfig.py')
-rw-r--r--lib/python/Components/UsageConfig.py17
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/python/Components/UsageConfig.py b/lib/python/Components/UsageConfig.py
index ad95b3c2..cfdb4589 100644
--- a/lib/python/Components/UsageConfig.py
+++ b/lib/python/Components/UsageConfig.py
@@ -109,14 +109,13 @@ def InitUsageConfig():
def updateChoices(sel, choices):
if choices:
- defval = None
- val = int(sel.value)
+ defval = None
+ val = int(sel.value)
if not val in choices:
- tmp = choices+[]
- tmp.reverse()
- for x in tmp:
- if x < val:
- defval = str(x)
- break
+ tmp = choices+[]
+ tmp.reverse()
+ for x in tmp:
+ if x < val:
+ defval = str(x)
+ break
sel.setChoices(map(str, choices), defval)
-