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