From d9dda3fa1d26915bef1508c4bc31f3a7ef270dfe Mon Sep 17 00:00:00 2001 From: drallod Date: Mon, 23 Jan 2017 10:15:05 -0600 Subject: [PATCH] Path: Fixed issue where GCodeEditorDialog wouldn't appear for some post processors --- src/Mod/Path/PathScripts/PostUtils.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Mod/Path/PathScripts/PostUtils.py b/src/Mod/Path/PathScripts/PostUtils.py index 8d013a862..e4547b1f5 100644 --- a/src/Mod/Path/PathScripts/PostUtils.py +++ b/src/Mod/Path/PathScripts/PostUtils.py @@ -152,7 +152,12 @@ def editor(gcode): '''pops up a handy little editor to look at the code output ''' dia = GCodeEditorDialog() dia.editor.setText(gcode) - # result = dia.exec_() + result = dia.exec_() + if result: # If user selected 'OK' get modified G Code + final = dia.editor.toPlainText() + else: + final = gcode + return final def fcoms(string,commentsym): ''' filter and rebuild comments with user preferred comment symbol'''