aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 14:51:43 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2006-04-03 14:51:43 +0000
commita80c8953ab5dafd0eb96b9cc19f8c5cb84dcd8e2 (patch)
treea7998d122b0f7cec3c4a870cdfde8cfb5c23d59c /lib/python
parentfc94d22d03cd9e7c24977257cbec912ad72c79da (diff)
downloadenigma2-a80c8953ab5dafd0eb96b9cc19f8c5cb84dcd8e2.tar.gz
enigma2-a80c8953ab5dafd0eb96b9cc19f8c5cb84dcd8e2.zip
better readable length check
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/MovieList.py4
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)