diff --git a/CHANGELOG.md b/CHANGELOG.md index e80952cc..e0d1b843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta - added ability to see the verbose log when importing SVG's (if set in preferences) - added some more logs to the SVG import +- fixed minor issue with not having the Cancel option on exiting the GCode Editor through the Toolbar button 19.01.2021 diff --git a/appGUI/MainGUI.py b/appGUI/MainGUI.py index 9477e790..36f82097 100644 --- a/appGUI/MainGUI.py +++ b/appGUI/MainGUI.py @@ -3773,7 +3773,7 @@ class MainGUI(QtWidgets.QMainWindow): if modifiers == QtCore.Qt.ControlModifier: # save (update) the current geometry and return to the App if key == QtCore.Qt.Key_S or key == 'S': - self.app.editor2object() + self.app.editor2object(force_cancel=True) return # SHIFT elif modifiers == QtCore.Qt.ShiftModifier: diff --git a/app_Main.py b/app_Main.py index 36306da8..9ce53968 100644 --- a/app_Main.py +++ b/app_Main.py @@ -2271,7 +2271,7 @@ class App(QtCore.QObject): # Edit Toolbar Signals self.ui.editor_start_btn.triggered.connect(self.object2editor) - self.ui.editor_exit_btn.clicked.connect(lambda: self.editor2object()) + self.ui.editor_exit_btn.clicked.connect(lambda: self.editor2object(force_cancel=True)) self.ui.copy_btn.triggered.connect(self.on_copy_command) self.ui.delete_btn.triggered.connect(self.on_delete)