fixes bug #280
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Sat, 7 Nov 2009 11:21:25 +0000 (12:21 +0100)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 16 Nov 2009 17:20:07 +0000 (18:20 +0100)
don't allow scanning on a nim configured as advanced with no LNB assigned to any sat

lib/python/Screens/ScanSetup.py

index bea087244b81dcc001667d418cd25f7e7d708c2b..fa787a7043500f63583d329b159e90039557fb04 100644 (file)
@@ -524,6 +524,8 @@ class ScanSetup(ConfigListScreen, Screen, CableTransponderSearchSupport):
                        for n in nimmanager.nim_slots:
                                if n.config_mode == "nothing":
                                        continue
+                               if n.config_mode == "advanced" and len(nimmanager.getSatListForNim(n.slot)) < 1:
+                                       continue
                                if n.config_mode in ("loopthrough", "satposdepends"):
                                        root_id = nimmanager.sec.getRoot(n.slot_id, int(n.config.connectedTo.value))
                                        if n.type == nimmanager.nim_slots[root_id].type: # check if connected from a DVB-S to DVB-S2 Nim or vice versa