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 ef8206af22c562ed33d109722b7ecbde2dca84a1..7c79acb74429484345761b7e447cd8a51eddddef 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):