From 6d98961bd858aa420415c8f1737e9e750794344c Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Sun, 26 Feb 2006 23:27:10 +0000 Subject: fix movielist selection when there is no (selected) item --- lib/python/Components/MovieList.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/python/Components') diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 82d2c56b..bc659114 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -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) -- cgit v1.2.3