fix bluescreens
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 23 May 2006 14:32:45 +0000 (14:32 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 23 May 2006 14:32:45 +0000 (14:32 +0000)
lib/python/Screens/Ci.py

index 10e33cf..cf9efd1 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