[POS-commit] r140 - stoqlib/stoqlib/interface

Evandro Vale Miquelito evandro at async.com.br
Wed Mar 16 17:21:05 BRT 2005


Author: evandro
Date: 2005-03-16 17:21:05 -0300 (Wed, 16 Mar 2005)
New Revision: 140

Modified:
   stoqlib/stoqlib/interface/dialogs.py
   stoqlib/stoqlib/interface/services.py
Log:
A small fix in the closing process of windows.


Modified: stoqlib/stoqlib/interface/dialogs.py
===================================================================
--- stoqlib/stoqlib/interface/dialogs.py	2005-03-16 18:24:02 UTC (rev 139)
+++ stoqlib/stoqlib/interface/dialogs.py	2005-03-16 20:21:05 UTC (rev 140)
@@ -39,7 +39,6 @@
     def close(self, *args):
         """Handles action to be performed when window is closed."""
         self.toplevel.destroy()
-        self.hide_and_quit()
         return True
 
     def run(self):

Modified: stoqlib/stoqlib/interface/services.py
===================================================================
--- stoqlib/stoqlib/interface/services.py	2005-03-16 18:24:02 UTC (rev 139)
+++ stoqlib/stoqlib/interface/services.py	2005-03-16 20:21:05 UTC (rev 140)
@@ -30,6 +30,7 @@
 from IndexedCatalog.Shelf import Shelf
 from ZODB.POSException import ConflictError
 
+from Kiwi2.initgtk import quit_if_last
 from Kiwi2.Delegates import Delegate
 from Kiwi2.Views import SlaveView, BaseView
 
@@ -63,7 +64,7 @@
         self.main_window.show()
 
     def shutdown(self, *args):
-        self.main_window.hide_and_quit()
+        quit_if_last()
 
     def do_sync(self, *args):
         if hasattr(self.main_window, 'sync'):



More information about the POS-commit mailing list