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'''