From 440c2c7bf354c34e3c5a49b4ff01023fc86da7b9 Mon Sep 17 00:00:00 2001 From: Marcel Date: Tue, 9 Jan 2018 13:37:53 +0100 Subject: [PATCH] [bugfix] reconnect interactive zoom after rectangle zoom --- pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index e4008af6..e4bc253c 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -a81c9-dirty +7be9-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 8ffe0848..6bb8886b 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1283,7 +1283,7 @@ class PickDlg(QDialog): tip='Zoom into waveform', checkable=True) self.resetZoomAction = createAction(parent=self, text='Home', - slot=self.multicompfig.resetZoom, icon=home_icon, + slot=self.resetZoom, icon=home_icon, tip='Reset zoom to original limits') self.resetPicksAction = createAction(parent=self, text='Delete Picks', slot=self.delPicks, icon=del_icon, @@ -2240,6 +2240,7 @@ class PickDlg(QDialog): ax = self.multicompfig.axes[0] self.setXLims(self.multicompfig.getGlobalLimits(ax, 'x')) self.setYLims(self.multicompfig.getGlobalLimits(ax, 'y')) + self.multicompfig.connectEvents() def setPlotLabels(self): @@ -2262,6 +2263,7 @@ class PickDlg(QDialog): self.figToolBar.zoom() else: self.figToolBar.zoom() + self.multicompfig.connectEvents() def draw(self): self.multicompfig.draw()