git.cweiske.de
/
enigma2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
better readable length check
[enigma2.git]
/
lib
/
python
/
Components
/
MovieList.py
diff --git
a/lib/python/Components/MovieList.py
b/lib/python/Components/MovieList.py
index 2e8614729c4873f69ee7fd2fc71c83350dc1b98d..2a3cd910fea6b0c88f8ea9836e952de61b42e63d 100644
(file)
--- 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)