From 5971f0ab2c372e63db191a29c27a68d01247e25e Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Mon, 21 Jul 2008 10:02:00 +0000 Subject: [PATCH] reset choices of connectedTo on leaving the nim setup with the "EXIT" button --- lib/python/Screens/Satconfig.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lib/python/Screens/Satconfig.py b/lib/python/Screens/Satconfig.py index a9bad427..22b80f62 100644 --- a/lib/python/Screens/Satconfig.py +++ b/lib/python/Screens/Satconfig.py @@ -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) -- 2.30.2