264 Private slot to handle the PEP 8 check context menu action |
264 Private slot to handle the PEP 8 check context menu action |
265 of the editors. |
265 of the editors. |
266 """ |
266 """ |
267 editor = e5App().getObject("ViewManager").activeWindow() |
267 editor = e5App().getObject("ViewManager").activeWindow() |
268 if editor is not None: |
268 if editor is not None: |
269 if editor.checkDirty(): |
269 if editor.checkDirty() and editor.getFileName() is not None: |
270 self.__editorPep8CheckerDialog = Pep8Dialog() |
270 self.__editorPep8CheckerDialog = Pep8Dialog() |
271 self.__editorPep8CheckerDialog.show() |
271 self.__editorPep8CheckerDialog.show() |
272 self.__editorPep8CheckerDialog.start( |
272 self.__editorPep8CheckerDialog.start( |
273 editor.getFileName(), |
273 editor.getFileName(), |
274 save=True, |
274 save=True, |