From: Andreas Monzner Date: Wed, 9 Jul 2008 16:04:15 +0000 (+0000) Subject: fix possible deathscreen on sat change (with predefind transponders) X-Git-Tag: 2.6.0~1063 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/250e846dc7fb2a3920e1aabd2430adb49fca5314?hp=8002c6bccab2a1808d2c2dccffa988be814a977c fix possible deathscreen on sat change (with predefind transponders) --- diff --git a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py index d6d967d2..3ba621d7 100644 --- a/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py +++ b/lib/python/Plugins/SystemPlugins/Satfinder/plugin.py @@ -184,6 +184,7 @@ class Satfinder(ScanSetup): if orb_pos is not None: transponderlist = nimmanager.getTransponders(orb_pos) list = [] + default = None for x in transponderlist: if x[3] == 0: pol = "H" @@ -219,8 +220,11 @@ class Satfinder(ScanSetup): fec = "FEC_None" else: fec = "FEC_Unknown" - list.append(str(x[1]) + "," + str(x[2]) + "," + pol + "," + fec) - self.tuning_transponder = ConfigSelection(choices = list) + e = str(x[1]) + "," + str(x[2]) + "," + pol + "," + fec + if default is None: + default = e + list.append(e) + self.tuning_transponder = ConfigSelection(choices = list, default = default) self.tuning_transponder.addNotifier(self.retune, initial_call = False) def keyGo(self):