aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
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)