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