From 7cd9e940139c1147608a27862fc838d79f254b41 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 30 Nov 2005 15:01:31 +0000 Subject: [PATCH] fix a small logic-problem --- lib/python/Components/ServiceList.py | 6 ++++-- 1 file 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) -- 2.30.2