simplify code
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 20 Jul 2006 18:25:33 +0000 (18:25 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Thu, 20 Jul 2006 18:25:33 +0000 (18:25 +0000)
lib/python/Screens/InfoBarGenerics.py

index 4c06661..9b6712e 100644 (file)
@@ -322,11 +322,8 @@ class InfoBarChannelSelection:
                        if prev:
                                prev = prev.toString()
                                while True:
                        if prev:
                                prev = prev.toString()
                                while True:
-                                       if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes":
-                                               if self.servicelist.atEnd():
-                                                       self.servicelist.nextBouquet()
-                                               else:
-                                                       self.servicelist.moveDown()
+                                       if currentConfigSelectionElement(config.usage.quickzap_bouquet_change) == "yes" and self.servicelist.atEnd():
+                                               self.servicelist.nextBouquet()
                                        else:
                                                self.servicelist.moveDown()
                                        cur = self.servicelist.getCurrentSelection()
                                        else:
                                                self.servicelist.moveDown()
                                        cur = self.servicelist.getCurrentSelection()