X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fc94d22d03cd9e7c24977257cbec912ad72c79da..dbe120313d2b4589e3c7ebe49ee98586a2b04e16:/lib/python/Components/MovieList.py diff --git a/lib/python/Components/MovieList.py b/lib/python/Components/MovieList.py index 2e861472..3b7e7e36 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 and l[0] def GUIcreate(self, parent): self.instance = eListbox(parent)