fix movielist selection when there is no (selected) item
[vuplus_dvbapp] / lib / python / Components / MovieList.py
index 82d2c56..bc65911 100644 (file)
@@ -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)