DVB-S sat config: set default nothing connected
authorDima73 <Dima-73@inbox.lv>
Mon, 14 Dec 2015 19:41:36 +0000 (21:41 +0200)
committerErik Slagter <erik@openpli.org>
Fri, 18 Dec 2015 09:32:39 +0000 (10:32 +0100)
-this solves the problem empty list of satellites
File "/usr/lib/enigma2/python/Screens/ScanSetup.py", line 604, in
__init__
File
"/usr/lib/enigma2/python/Plugins/SystemPlugins/Satfinder/plugin.py",
line 101, in createSetup
if len(nimmanager.getTransponders(int(self.tuning_sat.value))) < 1: #
Only offer 'predefined transponder' if some transponders exist
ValueError: invalid literal for int() with base 10: ''

(cherry picked from commit aa279418f87e58c5841a3ed553b509526e11021c)
Signed-off-by: Erik Slagter <erik@openpli.org>

lib/python/Components/NimManager.py

index e9e0ae3..21beb04 100644 (file)
@@ -1557,7 +1557,7 @@ def InitNimManager(nimmgr):
                        if len(nimmgr.canConnectTo(x)) > 0:
                                config_mode_choices.append(("loopthrough", _("loopthrough to")))
                        nim.advanced = ConfigNothing()
-                       tmp = ConfigSelection(config_mode_choices, "simple")
+                       tmp = ConfigSelection(config_mode_choices, "nothing")
                        tmp.slot_id = x
                        tmp.addNotifier(configModeChanged, initial_call = False)
                        nim.configMode = tmp