comment that this is a fall-trough
authorFelix Domke <tmbinc@elitedvb.net>
Tue, 7 Mar 2006 00:37:08 +0000 (00:37 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Tue, 7 Mar 2006 00:37:08 +0000 (00:37 +0000)
lib/python/Screens/ChannelSelection.py

index 7cdc0273fdc2dedc71af2549577ea8265a240463..3cd5968b45f37076fe3d513cece87a60d609d248 100644 (file)
@@ -187,13 +187,16 @@ class ChannelSelectionEdit:
                        def __init__(self, csel, contexts = [ ], actions = { }, prio=0):
                                ActionMap.__init__(self, contexts, actions, prio)
                                self.csel = csel
+
                        def action(self, contexts, action):
                                if action == "cancel":
                                        self.csel.handleEditCancel()
+                                       return 0 # fall-trough
                                elif action == "ok":
-                                       pass # avoid typo warning...
+                                       return 0 # fall-trough
                                else:
-                                       ActionMap.action(self, contexts, action)
+                                       return ActionMap.action(self, contexts, action)
+
                self["ChannelSelectEditActions"] = ChannelSelectionEditActionMap(self, ["ChannelSelectEditActions", "OkCancelActions"],
                        {
                                "contextMenu": self.doContext,