Screens/Standby.py: call quitMainloop after closing the TryQuitMainloop screen..
authorghost <andreas.monzner@multimedia-labs.de>
Thu, 13 Aug 2009 11:51:41 +0000 (13:51 +0200)
committerghost <andreas.monzner@multimedia-labs.de>
Thu, 13 Aug 2009 11:51:41 +0000 (13:51 +0200)
this clears the display and the framebuffer before quit enigma2

lib/python/Screens/Standby.py

index 8314e21..b8ccb6c 100644 (file)
@@ -162,9 +162,14 @@ class TryQuitMainloop(MessageBox):
                        self.conntected=False
                        self.session.nav.record_event.remove(self.getRecordEvent)
                if value:
                        self.conntected=False
                        self.session.nav.record_event.remove(self.getRecordEvent)
                if value:
-                       quitMainloop(self.retval)
-               else:
-                       MessageBox.close(self, True)
+                       # hack .. we dont like to show any other screens when this screen has closed
+                       self.onClose = [self.__closed]
+                       self.session.dialog_stack = []
+                       self.session.summary_stack = [None]
+               MessageBox.close(self, True)
+
+       def __closed(self):
+               quitMainloop(self.retval)
 
        def __onShow(self):
                global inTryQuitMainloop
 
        def __onShow(self):
                global inTryQuitMainloop