diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-09-24 00:49:09 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-09-24 00:49:09 +0000 |
| commit | d0a84d65c3a38c3e85576159c39ac88a46bb7b4a (patch) | |
| tree | c0e719d9500b3c8f6d22307c49126285b371a546 /lib/python/Components/Renderer | |
| parent | 6738100146d779e09ba53edadf116b68d7d39f36 (diff) | |
| download | enigma2-d0a84d65c3a38c3e85576159c39ac88a46bb7b4a.tar.gz enigma2-d0a84d65c3a38c3e85576159c39ac88a46bb7b4a.zip | |
when no listbox instance is available yet, index will be 0 when list is there, so return that.
Diffstat (limited to 'lib/python/Components/Renderer')
| -rw-r--r-- | lib/python/Components/Renderer/Listbox.py | 2 |
1 files changed, 1 insertions, 1 deletions
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): |
