fix close handling in context menu
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 1 Feb 2006 16:54:35 +0000 (16:54 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Wed, 1 Feb 2006 16:54:35 +0000 (16:54 +0000)
lib/python/Screens/ChannelSelection.py

index 9ca191216af8db39aaf5b62c11d6045253c1d63a..d11e878b77a8bf2315801a7bec88a14a12b41452 100644 (file)
@@ -106,16 +106,12 @@ class ChannelContextMenu(Screen):
                else:
                        cnt = len(bouquets)
                if cnt > 1: # show bouquet list
-                       self.session.openWithCallback(self.bouquetSelClosed, BouquetSelector, bouquets, self.bouquetSelected)
+                       self.session.openWithCallback(self.bouquetSelClosed, BouquetSelector, bouquets, self.addCurrentServiceToBouquet)
                elif cnt == 1: # add to only one existing bouquet
                        self.addCurrentServiceToBouquet(bouquets[0][1])
                else: #no bouquets in root.. so assume only one favourite list is used
                        self.addCurrentServiceToBouquet(self.csel.bouquet_root)
 
-       def bouquetSelected(self, bouquet):
-               self.addCurrentServiceToBouquet(bouquet)
-               self.close(True) # close bouquet selection
-
        def bouquetSelClosed(self, recursive):
                if recursive:
                        self.close(False)
@@ -130,6 +126,7 @@ class ChannelContextMenu(Screen):
 
        def addCurrentServiceToBouquet(self, dest):
                self.csel.addCurrentServiceToBouquet(dest)
+               self.close(True) # close bouquet selection
 
        def removeCurrentService(self):
                self.csel.removeCurrentService()