From 5763b994b39952bc06a75e634b4418f13b0aeaf2 Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Wed, 19 Apr 2006 00:12:13 +0000 Subject: fix bluescreen when wizard ends dont ask to scan 2nd NIM when both nims have the same satellites configured --- lib/python/Screens/ScanSetup.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib/python/Screens/ScanSetup.py') diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index b2a53ab0..2dbbca27 100644 --- a/lib/python/Screens/ScanSetup.py +++ b/lib/python/Screens/ScanSetup.py @@ -542,9 +542,13 @@ class ScanSimple(Screen): sec = eDVBSatelliteEquipmentControl.getInstance() if sec is not None: exclusive_satellites = sec.get_exclusive_satellites(0,1) - if len(exclusive_satellites) == 0: + if len(exclusive_satellites) == 2: return False - return True + idx = exclusive_satellites[0]+1 + exclusive_nim_sats = exclusive_satellites[idx+1:idx+1+exclusive_satellites[idx]] + if len(exclusive_nim_sats): + return True + return False # two -C or two -T tuners def __init__(self, session): Screen.__init__(self, session) -- cgit v1.2.3