[ocrfeeder] Fix problem when quitting the application



commit 7aa9cb199f34e286014f3dd2a26ed3ba62f6147c
Author: Joaquim Rocha <jrocha cookiemonster local igalia com>
Date:   Wed Mar 24 11:06:15 2010 +0100

    Fix problem when quitting the application
    
    When choosing Cancel on the quit dialog, the window was closing and the application was left running.

 studio/studioBuilder.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/studio/studioBuilder.py b/studio/studioBuilder.py
index 625e6ac..14c7033 100644
--- a/studio/studioBuilder.py
+++ b/studio/studioBuilder.py
@@ -262,8 +262,11 @@ class Studio:
             elif response == gtk.RESPONSE_NO:
                 quit_dialog.destroy()
                 self.__main_quit()
+            else:
+                return True
         else:
             self.__main_quit()
+        return False
     
     def __main_quit(self):
         self.configuration_manager.configurationToXml()



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]