aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Ci.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-05-29 12:42:51 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-05-29 12:42:51 +0000
commit5b0264e7606f9eee59586b50b5ca48599677d889 (patch)
tree3c2e46ecf7bd6717e7d7b116bb1990fd2f57b0fc /lib/python/Screens/Ci.py
parent51d5a73e196435b2f7d9de9e2d007c422293f071 (diff)
downloadenigma2-5b0264e7606f9eee59586b50b5ca48599677d889.tar.gz
enigma2-5b0264e7606f9eee59586b50b5ca48599677d889.zip
fix crash when ci state of cislot > 0 changed
Diffstat (limited to 'lib/python/Screens/Ci.py')
-rw-r--r--lib/python/Screens/Ci.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py
index d23fb044..09083f4e 100644
--- a/lib/python/Screens/Ci.py
+++ b/lib/python/Screens/Ci.py
@@ -265,7 +265,6 @@ 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)
@@ -309,7 +308,7 @@ class CiSelection(Screen):
self.state[slot] = state
slotidx=0
- while self.list[slotidx][3] != slot:
+ while len(self.list[slotidx]) < 3 or self.list[slotidx][3] != slot:
slotidx += 1
slotidx += 1 # do not change Reset