From 74472e61bdba1a23c9b31be1840bcbf198a77279 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Mon, 30 Aug 2021 00:50:22 +0300 Subject: [PATCH] - fixed the reconnection of the mouse events when canceling setting the origin --- CHANGELOG.md | 11 +++++++++-- app_Main.py | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5f4383..c43a2777 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,13 +7,20 @@ CHANGELOG for FlatCAM beta ================================================= -28.08.2021 +30.08.2021 + +- fixed the reconnection of the mouse events when canceling setting the origin + +29.08.2021 -- removed the setting for HDPI from Preferences and QSettings: QT6 does it automatically now - fixed a reported issue with the manual cutout in Cutout Plugin where adding more gaps will crash the app due of the manual geometry being a MultiPolygon and not a Polygon as it was assumed - fixed a reported bug in convert 2 geometry where a MultiLineString' object does not support item assignment“ error was issued - updated the language strings and the Simplified Chinese language translation +28.08.2021 + +- removed the setting for HDPI from Preferences and QSettings: QT6 does it automatically now + 26.08.2021 - updated the Italian translation by Massimiliano Golfetto diff --git a/app_Main.py b/app_Main.py index 15869c02..e1a108a5 100644 --- a/app_Main.py +++ b/app_Main.py @@ -5290,8 +5290,12 @@ class App(QtCore.QObject): self.should_we_save = True elif event is not None and event.button == right_button: if self.ui.popMenu.mouse_is_panning is False: + if self.is_legacy: + self.plotcanvas.graph_event_disconnect(self.mp_zc) + else: + self.plotcanvas.graph_event_disconnect('mouse_release', self.on_set_zero_click) + self.inhibit_context_menu = False self.inform.emit('[WARNING_NOTCL] %s' % _("Cancelled.")) - self.inhibit_context_menu = False def on_move2origin(self, use_thread=True): """