[PATCH 3/4] Do not call exit at the end of GUI interface, just quit the main loop

Martin Sivak msivak at redhat.com
Fri Jan 11 11:33:42 UTC 2013


---
 pyanaconda/ui/gui/__init__.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/pyanaconda/ui/gui/__init__.py b/pyanaconda/ui/gui/__init__.py
index d8febe9..dbf96bb 100644
--- a/pyanaconda/ui/gui/__init__.py
+++ b/pyanaconda/ui/gui/__init__.py
@@ -335,7 +335,6 @@ class GraphicalUserInterface(UserInterface):
                 self._actions.pop(0)
 
             if not self._actions:
-                sys.exit(0)
                 return
 
         self._currentAction.initialize()
@@ -428,9 +427,11 @@ class GraphicalUserInterface(UserInterface):
     ### SIGNAL HANDLING METHODS
     ###
     def _on_continue_clicked(self):
+        from gi.repository import Gtk
+        
         # If we're on the last screen, clicking Continue quits.
         if len(self._actions) == 1:
-            sys.exit(0)
+            Gtk.main_quit()
             return
 
         nextAction = None
-- 
1.7.11.7



More information about the anaconda-patches mailing list