aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2007-09-24 00:50:15 +0000
committerFelix Domke <tmbinc@elitedvb.net>2007-09-24 00:50:15 +0000
commitda2832478f13de61ba213fe8fe8f20a21b442d4b (patch)
tree3668adc35bfb7319678985d48a1d77c803c19b7e /lib/python
parente640a123e1a2ad241b3d06fc34eb517a3b22737d (diff)
downloadenigma2-da2832478f13de61ba213fe8fe8f20a21b442d4b.tar.gz
enigma2-da2832478f13de61ba213fe8fe8f20a21b442d4b.zip
return None instead of -1 in case of invalid index
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/Sources/List.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/python/Components/Sources/List.py b/lib/python/Components/Sources/List.py
index d7221296..82504401 100644
--- a/lib/python/Components/Sources/List.py
+++ b/lib/python/Components/Sources/List.py
@@ -49,7 +49,7 @@ to generate HTML."""
if self.master is not None:
return self.master.index
else:
- return -1
+ return None
setCurrentIndex = setIndex