don't offer scanning on nims where nothing is connected
[enigma2.git] / lib / python / Screens / ScanSetup.py
index 2e48a969981da7a16424163ec5ab4b555a4c219a..d0af8f7ecadf90ac05a19a20f304c02c453432b3 100644 (file)
@@ -883,6 +883,10 @@ class ScanSimple(ConfigListScreen, Screen, CableTransponderSearchSupport):
                                        need_scan = True
                                        print x, "not in ", known_networks
                                        known_networks.append(x)
                                        need_scan = True
                                        print x, "not in ", known_networks
                                        known_networks.append(x)
+                                       
+                       # don't offer to scan nims if nothing is connected
+                       if not nimmanager.somethingConnected(nim.slot):
+                               need_scan = False                               
 
                        if need_scan:
                                nims_to_scan.append(nim)
 
                        if need_scan:
                                nims_to_scan.append(nim)