From 60f0be1d2a1f5e8a4df32263c85a195d1631d198 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Thu, 12 Oct 2006 11:43:16 +0000 Subject: [PATCH] fix scanning with no and one nim --- lib/python/Screens/ScanSetup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index ea8d0b0..dbcd67d 100644 --- a/lib/python/Screens/ScanSetup.py +++ b/lib/python/Screens/ScanSetup.py @@ -590,6 +590,8 @@ class ScanSimple(ConfigListScreen, Screen): nim.nim_index = 0 if nimtype == nimmanager.nimType["DVB-S"] and not len(nimmanager.getSatListForNim(0)): scan_possible=False + if nimtype == nimmanager.nimType["empty/unknown"]: + scan_possible = False if scan_possible: self.list.append(getConfigListEntry(_("Scan NIM") + " 0 (" + nimmanager.getNimTypeName(0) + ")", nim)) @@ -680,6 +682,8 @@ class ScanSimple(ConfigListScreen, Screen): return 0 def ScanNimTwoNeeded(self): + if nimmanager.getNimType(1) == nimmanager.nimType["empty/unknown"]: + return False if nimmanager.getNimType(0) != nimmanager.getNimType(1): return True if nimmanager.getNimType(0) == nimmanager.nimType["DVB-S"]: #two dvb-s nims -- 2.7.4