--- 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