X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fc94d22d03cd9e7c24977257cbec912ad72c79da..191cade7c45bee53df2776ff5bb3f26b2cdafc12:/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)