From: Felix Domke Date: Mon, 24 Sep 2007 00:49:09 +0000 (+0000) Subject: when no listbox instance is available yet, index will be 0 when list is there, so... X-Git-Tag: 2.6.0~1871 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/d0a84d65c3a38c3e85576159c39ac88a46bb7b4a when no listbox instance is available yet, index will be 0 when list is there, so return that. --- diff --git a/lib/python/Components/Renderer/Listbox.py b/lib/python/Components/Renderer/Listbox.py index ef8206af..7c79acb7 100644 --- a/lib/python/Components/Renderer/Listbox.py +++ b/lib/python/Components/Renderer/Listbox.py @@ -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):