245 """ |
245 """ |
246 Private slot to handle the tabnanny context menu action of the editors. |
246 Private slot to handle the tabnanny context menu action of the editors. |
247 """ |
247 """ |
248 editor = e5App().getObject("ViewManager").activeWindow() |
248 editor = e5App().getObject("ViewManager").activeWindow() |
249 if editor is not None: |
249 if editor is not None: |
250 if not editor.checkDirty(): |
250 if editor.checkDirty() and editor.getFileName() is not None: |
251 return |
251 self.__editorTabnannyDialog = TabnannyDialog() |
252 |
252 self.__editorTabnannyDialog.show() |
253 self.__editorTabnannyDialog = TabnannyDialog() |
253 self.__editorTabnannyDialog.start(editor.getFileName()) |
254 self.__editorTabnannyDialog.show() |
|
255 self.__editorTabnannyDialog.start(editor.getFileName()) |
|