From 250e846dc7fb2a3920e1aabd2430adb49fca5314 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 9 Jul 2008 16:04:15 +0000 Subject: [PATCH] fix possible deathscreen on sat change (with predefind transponders) --- lib/python/Plugins/SystemPlugins/Satfinder/plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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): -- 2.30.2