aboutsummaryrefslogtreecommitdiff
path: root/lib/python/Screens/Ci.py
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-07-24 14:21:43 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2007-07-24 14:21:43 +0000
commitfe4819c2c3bf9e67e8088aea8d85751cd5918ee5 (patch)
tree231a85dd3bd738cd82eaff77c842d67490010684 /lib/python/Screens/Ci.py
parentd2b38521b68f84026b19a829ae3f64eeb268fb31 (diff)
downloadenigma2-fe4819c2c3bf9e67e8088aea8d85751cd5918ee5.tar.gz
enigma2-fe4819c2c3bf9e67e8088aea8d85751cd5918ee5.zip
small fix
Diffstat (limited to 'lib/python/Screens/Ci.py')
-rw-r--r--lib/python/Screens/Ci.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/python/Screens/Ci.py b/lib/python/Screens/Ci.py
index 46b07794..75bdd5bc 100644
--- a/lib/python/Screens/Ci.py
+++ b/lib/python/Screens/Ci.py
@@ -228,8 +228,6 @@ class CiMessageHandler:
elif eDVBCI_UI.getInstance().availableMMI(slot) == 1:
if self.session:
self.dlgs[slot] = self.session.openWithCallback(self.dlgClosed, CiMmi, slot, 3)
- else:
- print "no session"
def dlgClosed(self, slot):
if slot in self.dlgs:
@@ -248,7 +246,6 @@ CiHandler = CiMessageHandler()
class CiSelection(Screen):
def __init__(self, session):
Screen.__init__(self, session)
-
self["actions"] = ActionMap(["OkCancelActions", "CiSelectionActions"],
{
"left": self.keyLeft,
@@ -357,5 +354,8 @@ class CiSelection(Screen):
self.dlg = self.session.openWithCallback(self.dlgClosed, CiMmi, slot, action)
def cancel(self):
- CiHandler.unregisterCIMessageHandler(0)
+ for slot in range(MAX_NUM_CI):
+ state = eDVBCI_UI.getInstance().getState(slot)
+ if state != -1:
+ CiHandler.unregisterCIMessageHandler(slot)
self.close()