ViewManager/ViewManager.py

branch
5_2_x
changeset 2139
a7ebeff68ab6
parent 2113
91ad478a4ad7
child 2303
0ed4ed026c16
equal deleted inserted replaced
2136:cd050a70d3c1 2139:a7ebeff68ab6
5166 5166
5167 If it cannot close all editor windows, it aborts the shutdown process. 5167 If it cannot close all editor windows, it aborts the shutdown process.
5168 5168
5169 @return flag indicating success (boolean) 5169 @return flag indicating success (boolean)
5170 """ 5170 """
5171 e5App().focusChanged.disconnect(self.appFocusChanged)
5172
5171 self.closeAllWindows() 5173 self.closeAllWindows()
5172 5174
5173 # save the list of recently opened projects 5175 # save the list of recently opened projects
5174 self.__saveRecent() 5176 self.__saveRecent()
5175 5177
5179 if len(self.editors): 5181 if len(self.editors):
5180 res = False 5182 res = False
5181 else: 5183 else:
5182 res = True 5184 res = True
5183 5185
5184 if res: 5186 if not res:
5185 e5App().focusChanged.disconnect(self.appFocusChanged) 5187 e5App().focusChanged.connect(self.appFocusChanged)
5186 5188
5187 return res 5189 return res
5188 5190
5189 def __lastEditorClosed(self): 5191 def __lastEditorClosed(self):
5190 """ 5192 """

eric ide

mercurial