when no listbox instance is available yet, index will be 0 when list is there, so...
authorFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Sep 2007 00:49:09 +0000 (00:49 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Mon, 24 Sep 2007 00:49:09 +0000 (00:49 +0000)
lib/python/Components/Renderer/Listbox.py

index ef8206a..7c79acb 100644 (file)
@@ -51,7 +51,7 @@ class Listbox(Renderer, object):
 
        def getIndex(self):
                if self.instance is None:
-                       return None
+                       return 0
                return self.instance.getCurrentIndex()
 
        def moveToIndex(self, index):