aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFraxinas <andreas.frisch@multimedia-labs.de>2010-06-09 02:32:29 +0200
committerghost <andreas.monzner@multimedia-labs.de>2010-10-06 23:44:23 +0200
commit896c84d2406e5c2a16a98539f10b9695027eace9 (patch)
tree4c8282f07e7201d3841b865960f4bda8a726db13 /lib/python
parentb5d77f1a7b719fccfa19561a5a07ea8de51f42a4 (diff)
downloadenigma2-896c84d2406e5c2a16a98539f10b9695027eace9.tar.gz
enigma2-896c84d2406e5c2a16a98539f10b9695027eace9.zip
fix subtitle configlist crash
Diffstat (limited to 'lib/python')
-rwxr-xr-xlib/python/Components/ConfigList.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/lib/python/Components/ConfigList.py b/lib/python/Components/ConfigList.py
index 418a1b67..ffbc69af 100755
--- a/lib/python/Components/ConfigList.py
+++ b/lib/python/Components/ConfigList.py
@@ -61,12 +61,13 @@ class ConfigList(HTMLComponent, GUIComponent, object):
GUI_WIDGET = eListbox
def selectionChanged(self):
- if self.current:
+ if isinstance(self.current,tuple) and len(self.current) == 2:
self.current[1].onDeselect(self.session)
self.current = self.getCurrent()
- if self.current:
+ if isinstance(self.current,tuple) and len(self.current) == 2:
self.current[1].onSelect(self.session)
-
+ else:
+ return
for x in self.onSelectionChanged:
x()
@@ -75,11 +76,11 @@ class ConfigList(HTMLComponent, GUIComponent, object):
instance.setContent(self.l)
def preWidgetRemove(self, instance):
- if self.current:
+ if isinstance(self.current,tuple) and len(self.current) == 2:
self.current[1].onDeselect(self.session)
instance.selectionChanged.get().remove(self.selectionChanged)
instance.setContent(None)
-
+
def setList(self, l):
self.timer.stop()
self.__list = l