From: Stefan Pluecken Date: Mon, 21 Jul 2008 10:02:00 +0000 (+0000) Subject: reset choices of connectedTo on leaving the nim setup with the "EXIT" X-Git-Tag: 2.6.0~1010 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/5971f0ab2c372e63db191a29c27a68d01247e25e reset choices of connectedTo on leaving the nim setup with the "EXIT" button --- 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)