X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/0b3f0682adc10d05a81c26e5a99cc77b9f0f507d..ddbade50b0f18544ba0e378d0b2937788cdd269c:/lib/python/Components/UsageConfig.py 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) -