git.cweiske.de
/
enigma2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e2d4c2
)
return None (instead of crash) when list is empty, and getCurrent is called
author
Felix Domke
<tmbinc@elitedvb.net>
Tue, 19 Jun 2007 23:41:34 +0000
(23:41 +0000)
committer
Felix Domke
<tmbinc@elitedvb.net>
Tue, 19 Jun 2007 23:41:34 +0000
(23:41 +0000)
lib/python/Components/Converter/StringList.py
patch
|
blob
|
history
diff --git
a/lib/python/Components/Converter/StringList.py
b/lib/python/Components/Converter/StringList.py
index 4199212a33f348bbe1494a95500e7adea357b464..5d02e9bad269178c07dd374c77b8b54d23a075a1 100644
(file)
--- a/
lib/python/Components/Converter/StringList.py
+++ b/
lib/python/Components/Converter/StringList.py
@@
-25,7
+25,7
@@
class StringList(Converter):
@cached
def getCurrent(self):
- if self.source is None:
+ if self.source is None
or self.index >= len(self.source.list)
:
return None
return self.source.list[self.index]
@@
-41,5
+41,5
@@
class StringList(Converter):
def setIndex(self, index):
if self.master is not None:
self.master.index = index
-
+
index = property(getIndex, setIndex)