diff options
| author | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-06-09 02:32:29 +0200 |
|---|---|---|
| committer | Fraxinas <andreas.frisch@multimedia-labs.de> | 2010-06-09 02:53:48 +0200 |
| commit | ca082734334ea28bc248e619223fbc02f9fc2705 (patch) | |
| tree | d331b3d1452a90fd271f4368239cf7cf3551faba /lib/python | |
| parent | e9da6f6390746f0f3e0b88816ea2e0dd30d05009 (diff) | |
| download | enigma2-ca082734334ea28bc248e619223fbc02f9fc2705.tar.gz enigma2-ca082734334ea28bc248e619223fbc02f9fc2705.zip | |
fix subtitle configlist crash
Diffstat (limited to 'lib/python')
| -rwxr-xr-x | lib/python/Components/ConfigList.py | 11 |
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 |
