aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components/config.py
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2010-07-22 19:37:35 +0200
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2010-07-22 19:42:47 +0200
commit1d8bd795e00ace3dde10b2ad5986a0593bc2c234 (patch)
tree50172bc72d39745bfa5475a6d9e2aadd2d5bff46 /lib/python/Components/config.py
parent7cbe7598b150011d507a6193146edf75df34d812 (diff)
downloadenigma2-1d8bd795e00ace3dde10b2ad5986a0593bc2c234.tar.gz
enigma2-1d8bd795e00ace3dde10b2ad5986a0593bc2c234.zip
fixes bug #556
- fixes adding timers from inside the movie player: the .ts service was added as channel - fixes a small bug in ConfigSelection to allow empty strings inside the ChoicesList
Diffstat (limited to 'lib/python/Components/config.py')
-rwxr-xr-xlib/python/Components/config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py
index d7506e31..08dd3745 100755
--- a/lib/python/Components/config.py
+++ b/lib/python/Components/config.py
@@ -179,7 +179,7 @@ class choicesList(object): # XXX: we might want a better name for this
def __list__(self):
if self.type == choicesList.LIST_TYPE_LIST:
- ret = [not isinstance(x, tuple) and x or x[0] for x in self.choices]
+ ret = [not isinstance(x, tuple) and x or len(x) > 0 and x[0] or len(x) == 0 and x for x in self.choices]
else:
ret = self.choices.keys()
return ret or [""]