fix bluescreen when opening motor setup and more than one nim is configured
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 16 Oct 2007 19:00:01 +0000 (19:00 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 16 Oct 2007 19:00:01 +0000 (19:00 +0000)
for motor use

lib/python/Plugins/SystemPlugins/PositionerSetup/plugin.py

index fccd262..e394db4 100644 (file)
@@ -529,11 +529,10 @@ class NimSelection(Screen):
        def __init__(self, session):
                Screen.__init__(self, session)
 
-               nimlist = nimmanager.getNimListOfType(nimmanager.nimType["DVB-S"])
+               nimlist = nimmanager.getNimListOfType("DVB-S")
                nimMenuList = []
                for x in nimlist:
-                       n = nimmanager.nim_slots[x]
-                       nimMenuList.append((n.friendly_full_name, x))
+                       nimMenuList.append((nimmanager.nim_slots[x].friendly_full_description, x))
                
                self["nimlist"] = MenuList(nimMenuList)