enhance usability of ZappingAlternatives plugin
[enigma2.git] / lib / python / Components / MovieList.py
index 82d2c56b1c40284cf8505d36cd16b96a383a0aa9..bc659114f308bbf7a596a04a37d1dbf793129e20 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)