aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-30 15:01:31 +0000
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>2005-11-30 15:01:31 +0000
commit7cd9e940139c1147608a27862fc838d79f254b41 (patch)
tree00c6efa06cc1e298b09732b0ee44cb2764d95dd0 /lib/python
parent8c0a01c09ee2e48354275796ae854dd61c93b8f4 (diff)
downloadenigma2-7cd9e940139c1147608a27862fc838d79f254b41.tar.gz
enigma2-7cd9e940139c1147608a27862fc838d79f254b41.zip
fix a small logic-problem
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Components/ServiceList.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py
index e04594ee..84e9e82e 100644
--- a/lib/python/Components/ServiceList.py
+++ b/lib/python/Components/ServiceList.py
@@ -36,8 +36,10 @@ class ServiceList(HTMLComponent, GUIComponent):
print "Next char: "
index = self.l.getNextBeginningWithChar(char)
indexup = self.l.getNextBeginningWithChar(upper(char))
- if (index > indexup):
- index = indexup
+ if indexup != 0:
+ if (index > indexup or index == 0):
+ index = indexup
+
self.instance.moveSelectionTo(index)
print "Moving to character " + str(char)