diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Components/MovieList.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 2e861472..2a3cd910 100644 --- a/lib/python/Components/MovieList.py +++ b/lib/python/Components/MovieList.py @@ -61,9 +61,7 @@ class MovieList(HTMLComponent, GUIComponent): def getCurrent(self): l = self.l.getCurrentSelection() - if l is not None: - return self.l.getCurrentSelection()[0] - return None + return l or l[0] def GUIcreate(self, parent): self.instance = eListbox(parent) |
