Redid the focusChanged change of ViewManager.py.

Mon, 15 Oct 2012 19:10:17 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Oct 2012 19:10:17 +0200
changeset 2138
6fa3cda67d42
parent 2137
5a9bdcb8c934
child 2140
47999ffe0184

Redid the focusChanged change of ViewManager.py.

ViewManager/ViewManager.py file | annotate | diff | comparison | revisions
--- 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