From: Stefan Pluecken Date: Thu, 12 Oct 2006 11:43:16 +0000 (+0000) Subject: fix scanning with no and one nim X-Git-Tag: 2.6.0~2922 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/60f0be1d2a1f5e8a4df32263c85a195d1631d198 fix scanning with no and one nim --- diff --git a/lib/python/Screens/ScanSetup.py b/lib/python/Screens/ScanSetup.py index ea8d0b0a..dbcd67d4 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