Redid the focusChanged change of ViewManager.py. 5_2_x

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

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 15 Oct 2012 19:10:17 +0200
branch
5_2_x
changeset 2139
a7ebeff68ab6
parent 2136
cd050a70d3c1
child 2141
c4966c4d010f

Redid the focusChanged change of ViewManager.py.
(grafted from 6fa3cda67d42f7ebca85715ec9da4ef6d514d5f0)

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