fix bluescreen when wizard ends
[enigma2.git] / lib / python / Screens / MessageBox.py
index 7ed252c6ae3e0dd9f00519233713e0f5e2356fa1..51dd2fb4849ee60d5f947d8120a69b43803ce926 100644 (file)
@@ -24,11 +24,11 @@ class MessageBox(Screen):
                
                self.list = []
                if type != self.TYPE_ERROR:
-                       self.onShown.append(self["ErrorPixmap"].hideWidget)
-               elif type != self.TYPE_YESNO:
-                       self.onShown.append(self["QuestionPixmap"].hideWidget)
-               elif type != self.TYPE_INFO:
-                       self.onShown.append(self["InfoPixmap"].hideWidget)
+                       self["ErrorPixmap"].hide()
+               if type != self.TYPE_YESNO:
+                       self["QuestionPixmap"].hide()
+               if type != self.TYPE_INFO:
+                       self["InfoPixmap"].hide()
                        
                if type == self.TYPE_YESNO:
                        self.list = [ (_("yes"), 0), (_("no"), 1) ]
@@ -54,4 +54,4 @@ class MessageBox(Screen):
                        self.close(True)
 
        def alwaysOK(self):
-               self.close(True)
\ No newline at end of file
+               self.close(True)