Fix ticket #36 (patch by Darryl Shpak).
authorJoel Rosdahl <joel@rosdahl.net>
Mon, 20 Dec 2004 21:36:38 +0000 (21:36 +0000)
committerJoel Rosdahl <joel@rosdahl.net>
Mon, 20 Dec 2004 21:36:38 +0000 (21:36 +0000)
src/gkofoto/gkofoto/controller.py

index 9f25f86..965ea58 100644 (file)
@@ -29,15 +29,12 @@ class Controller:
             if setupOk:
                 # Doesn't work with x[0].destroy(). Don't know why.
                 dialog.connect("response", lambda *x: x[0].hide())
-            else:
-                # Doesn't work with gtk.main_quit(). Don't know why.
-                dialog.connect("response", lambda *x: sys.exit(1))
             dialog.run()
         if setupOk:
             self.__mainWindow = MainWindow()
             env.widgets["mainWindow"].connect("destroy", self.quit, False)
             env.widgets["mainWindow"].show()
-        gtk.main()
+            gtk.main()
 
     def quit(self, app, cancelButton=True):
         if env.shelf.isModified():