- fixed the reconnection of the mouse events when canceling setting the origin

This commit is contained in:
Marius Stanciu
2021-08-30 00:50:22 +03:00
committed by Marius
parent ba217fc103
commit 74472e61bd
2 changed files with 14 additions and 3 deletions

View File

@@ -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):
"""