X-Git-Url: http://code.vuplus.com/gitweb/?a=blobdiff_plain;f=lib%2Fpython%2FComponents%2Fconfig.py;h=1afd398ea1b6d5ed42202097f15a9806c87dbc8e;hb=37152843c915fd0a9352256d804ced4ff54c23c4;hp=a6007b105f62ebb9f5e73bc1291546e95a69d200;hpb=330d89bcb3e580f8b4ec4aaabbc2e8d7a50c5f6f;p=vuplus_dvbapp diff --git a/lib/python/Components/config.py b/lib/python/Components/config.py index a6007b1..1afd398 100755 --- a/lib/python/Components/config.py +++ b/lib/python/Components/config.py @@ -178,7 +178,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 [""] @@ -1138,6 +1138,9 @@ class ConfigDirectory(ConfigText): else: return ConfigText.getMulti(self, selected) + def onSelect(self, session): + self.allmarked = (self.value != "") + # a slider. class ConfigSlider(ConfigElement): def __init__(self, default = 0, increment = 1, limits = (0, 100)):