From 4292197818e6cb8ab2038eb871fb07d1067a372a Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Thu, 25 Jun 2015 10:35:58 +0200 Subject: [PATCH] [bugfix] switching between zooming types now does not cause weird mouse event behavior anymore --- pylot/core/util/widgets.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index b8b8b931..0c0ec11d 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -609,10 +609,11 @@ class PickDlg(QDialog): self.disconnectScrollEvent() self.figToolBar.zoom() else: - self.connectPressEvent(self.panPress) - self.connectMotionEvent(self.panMotion) - self.connectReleaseEvent(self.panRelease) - self.connectScrollEvent(self.scrollZoom) + self.figToolBar.zoom() + self.cidpress = self.connectPressEvent(self.panPress) + self.cidmotion = self.connectMotionEvent(self.panMotion) + self.cidrelease = self.connectReleaseEvent(self.panRelease) + self.cidscroll = self.connectScrollEvent(self.scrollZoom) def scrollZoom(self, gui_event, factor=2.):