aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Components
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2006-02-26 23:27:10 +0000
committerFelix Domke <tmbinc@elitedvb.net>2006-02-26 23:27:10 +0000
commit6d98961bd858aa420415c8f1737e9e750794344c (patch)
tree33e535a36c1416022f8cac14b4e7497dfb70c45d /lib/python/Components
parent41c90671f123813d65bbcc877fb3659e889e0376 (diff)
downloadenigma2-6d98961bd858aa420415c8f1737e9e750794344c.tar.gz
enigma2-6d98961bd858aa420415c8f1737e9e750794344c.zip
fix movielist selection when there is no (selected) item
Diffstat (limited to 'lib/python/Components')
-rw-r--r--lib/python/Components/MovieList.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py
index 82d2c56b..bc659114 100644
--- a/lib/python/Components/MovieList.py
+++ b/lib/python/Components/MovieList.py
@@ -63,7 +63,8 @@ class MovieList(HTMLComponent, GUIComponent):
return self.instance.getCurrentIndex()
def getCurrent(self):
- return self.l.getCurrentSelection()[0]
+ l = self.l.getCurrentSelection()
+ return l and l[0]
def GUIcreate(self, parent):
self.instance = eListbox(parent)