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 self.__editorPep8CheckerDialog = Pep8Dialog() |
268 if editor.checkDirty(): |
269 self.__editorPep8CheckerDialog.show() |
269 self.__editorPep8CheckerDialog = Pep8Dialog() |
270 self.__editorPep8CheckerDialog.start( |
270 self.__editorPep8CheckerDialog.show() |
271 editor.getFileName(), |
271 self.__editorPep8CheckerDialog.start( |
272 codestring = editor.text(), |
272 editor.getFileName(), |
273 save = True, |
273 save = True, |
274 repeat = True) |
274 repeat = True) |