reset choices of connectedTo on leaving the nim setup with the "EXIT"
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 21 Jul 2008 10:02:00 +0000 (10:02 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 21 Jul 2008 10:02:00 +0000 (10:02 +0000)
button

lib/python/Screens/Satconfig.py

index a9bad42..22b80f6 100644 (file)
@@ -356,6 +356,16 @@ class NimSetup(Screen, ConfigListScreen):
                for x in self["config"].list:
                        x[1].save()
                        
+       def cancelConfirm(self, result):
+               if not result:
+                       return
+
+               for x in self["config"].list:
+                       x[1].cancel()
+               # we need to call saveAll to reset the connectedTo choices
+               self.saveAll()
+               self.close()
+                       
 class NimSelection(Screen):
        def __init__(self, session):
                Screen.__init__(self, session)