ViewManager/ViewManager.py

changeset 2138
6fa3cda67d42
parent 2110
eff6b085ea89
child 2162
4627e6ea7b6b
--- a/ViewManager/ViewManager.py	Sat Oct 13 17:49:13 2012 +0200
+++ b/ViewManager/ViewManager.py	Mon Oct 15 19:10:17 2012 +0200
@@ -5168,6 +5168,8 @@
         
         @return flag indicating success (boolean)
         """
+        e5App().focusChanged.disconnect(self.appFocusChanged)
+        
         self.closeAllWindows()
         
         # save the list of recently opened projects
@@ -5181,8 +5183,8 @@
         else:
             res = True
         
-        if res:
-            e5App().focusChanged.disconnect(self.appFocusChanged)
+        if not res:
+            e5App().focusChanged.connect(self.appFocusChanged)
         
         return res
         

eric ide

mercurial