fix bluescreens
[enigma2.git] / lib / python / Screens / Ci.py
index 10e33cfe361a89cca03f9907d8050723f1aece45..cf9efd102671142708486201ae90b4434c57097f 100644 (file)
@@ -22,6 +22,7 @@ class CiMmi(Screen):
 
                print "ciMMI with action" + str(action)
 
 
                print "ciMMI with action" + str(action)
 
+               self.tag = None
                self.slotid = slotid
 
                self.timer = eTimer()
                self.slotid = slotid
 
                self.timer = eTimer()
@@ -79,6 +80,8 @@ class CiMmi(Screen):
 
        def okbuttonClick(self):
                self.timer.stop()
 
        def okbuttonClick(self):
                self.timer.stop()
+               if not self.tag:
+                       return
                if self.tag == "WAIT":
                        print "do nothing - wait"
                elif self.tag == "MENU":
                if self.tag == "WAIT":
                        print "do nothing - wait"
                elif self.tag == "MENU":
@@ -108,6 +111,8 @@ class CiMmi(Screen):
 
        def keyCancel(self):
                self.timer.stop()
 
        def keyCancel(self):
                self.timer.stop()
+               if not self.tag:
+                       return
                if self.tag == "WAIT":
                        eDVBCI_UI.getInstance().stopMMI(self.slotid)
                        self.closeMmi()
                if self.tag == "WAIT":
                        eDVBCI_UI.getInstance().stopMMI(self.slotid)
                        self.closeMmi()
@@ -149,7 +154,7 @@ class CiMmi(Screen):
                        List.l.setList(list)
                        return
 
                        List.l.setList(list)
                        return
 
-               if self.tag == "ENQ":
+               if self.tag and self.tag == "ENQ":
                        type = TYPE_CONFIG
                else:
                        type = TYPE_MENU
                        type = TYPE_CONFIG
                else:
                        type = TYPE_MENU