fix a small logic-problem
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 30 Nov 2005 15:01:31 +0000 (15:01 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Wed, 30 Nov 2005 15:01:31 +0000 (15:01 +0000)
lib/python/Components/ServiceList.py

index e04594e..84e9e82 100644 (file)
@@ -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)