fix for more than one CI
[enigma2.git] / lib / python / Screens / Ci.py
index 27ca5aa39cb0f1c0074856939cbf2c0a7143333f..d23fb0447ee1a70b85e148ca24981bb1d4d3976c 100644 (file)
@@ -265,6 +265,7 @@ class CiSelection(Screen):
 
                for slot in range(MAX_NUM_CI):
                        state = eDVBCI_UI.getInstance().getState(slot)
+                       print "slot", slot, "state", state
                        if state != -1:
                                self.appendEntries(slot, state)
                                CiHandler.registerCIMessageHandler(slot, self.ciStateChanged)
@@ -308,7 +309,7 @@ class CiSelection(Screen):
                self.state[slot] = state
 
                slotidx=0
-               while self.list[slotidx][2] != slot:
+               while self.list[slotidx][3] != slot:
                        slotidx += 1
 
                slotidx += 1 # do not change Reset