diff options
| author | Felix Domke <tmbinc@elitedvb.net> | 2007-09-24 00:50:15 +0000 |
|---|---|---|
| committer | Felix Domke <tmbinc@elitedvb.net> | 2007-09-24 00:50:15 +0000 |
| commit | da2832478f13de61ba213fe8fe8f20a21b442d4b (patch) | |
| tree | 3668adc35bfb7319678985d48a1d77c803c19b7e /lib/python/Components/Sources | |
| parent | e640a123e1a2ad241b3d06fc34eb517a3b22737d (diff) | |
| download | enigma2-da2832478f13de61ba213fe8fe8f20a21b442d4b.tar.gz enigma2-da2832478f13de61ba213fe8fe8f20a21b442d4b.zip | |
return None instead of -1 in case of invalid index
Diffstat (limited to 'lib/python/Components/Sources')
| -rw-r--r-- | lib/python/Components/Sources/List.py | 2 |
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 |
