Plugins/PluginTabnanny.py

branch
5_1_x
changeset 955
377efd9104a7
parent 805
83ca4d1ff648
child 1510
e75ecf2bd9dd
equal deleted inserted replaced
951:08ecc72adb94 955:377efd9104a7
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())

eric ide

mercurial