X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/494169d25068e3d3dd2dcc8b37b42d32df6935e7..7aaa13924d6d60f6fb66a262ce6ecd8088aee9b6:/lib/python/Components/ServiceList.py diff --git a/lib/python/Components/ServiceList.py b/lib/python/Components/ServiceList.py index e04594ee..d008c475 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) @@ -68,6 +70,9 @@ class ServiceList(HTMLComponent, GUIComponent): def setNumberOffset(self, offset): self.l.setNumberOffset(offset) + def setPlayableIgnoreService(self, ref): + self.l.setIgnoreService(ref) + def setRoot(self, root): self.root = root self.l.setRoot(root)