242 """ |
242 """ |
243 Private slot to handle the syntax check context menu action of the editors. |
243 Private slot to handle the syntax check context menu action of the editors. |
244 """ |
244 """ |
245 editor = e5App().getObject("ViewManager").activeWindow() |
245 editor = e5App().getObject("ViewManager").activeWindow() |
246 if editor is not None: |
246 if editor is not None: |
247 self.__editorSyntaxCheckerDialog = SyntaxCheckerDialog() |
247 if editor.checkDirty(): |
248 self.__editorSyntaxCheckerDialog.show() |
248 self.__editorSyntaxCheckerDialog = SyntaxCheckerDialog() |
249 self.__editorSyntaxCheckerDialog.start(editor.getFileName(), |
249 self.__editorSyntaxCheckerDialog.show() |
250 editor.text()) |
250 self.__editorSyntaxCheckerDialog.start( |
|
251 editor.getFileName() or "Unnamed.py", editor.text()) |