ViewManager/ViewManager.py

branch
5_2_x
changeset 2139
a7ebeff68ab6
parent 2113
91ad478a4ad7
child 2303
0ed4ed026c16
--- a/ViewManager/ViewManager.py	Sat Oct 13 13:10:04 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