Plugins/PluginTabnanny.py

changeset 954
a096fdc38f71
parent 945
8cd4d08fa9f6
child 1131
7781e396c903
equal deleted inserted replaced
953:7c42d54ba205 954:a096fdc38f71
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())

eric ide

mercurial