NIM cleanup, as described in https://lists.elitedvb.net/pipermail/enigma2-devel/2007...
[enigma2.git] / lib / python / Screens / About.py
index bed0275902eb64ee68e138561175d56a5d871ffa..6658bb1a4bee43fc0a0874253e23ca2df211105e 100644 (file)
@@ -25,10 +25,11 @@ class About(Screen):
                self["fpVersion"] = Label(fp_version)
                
                nims = nimmanager.nimList()
-               count = 0
-               for i in nims:
-                       self["tuner" + str(count)] = Label(i[0])
-                       count += 1
+               for count in range(4):
+                       if count < len(nims):
+                               self["tuner" + str(count)] = Label(nims[count])
+                       else:
+                               self["tuner" + str(count)] = Label("")
 
                self["hdd"] = Label(_("Detected HDD:"))
                hdd = Harddisk(0)