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 a9bad427d938f7fe42a5d78caba2b6ca327eab4f..22b80f623625f1ebe62c81e3486bdd46e802a7dc 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)