From 78d5ee58b560952b28e39fb1777dd196c2bb4bb9 Mon Sep 17 00:00:00 2001 From: Marcel Date: Wed, 10 Jan 2018 16:08:28 +0100 Subject: [PATCH] [update] apply new filter settings after selection --- PyLoT.py | 1 + pylot/RELEASE-VERSION | 2 +- pylot/core/util/widgets.py | 9 ++++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/PyLoT.py b/PyLoT.py index fbdc303b..a53dadc5 100755 --- a/PyLoT.py +++ b/PyLoT.py @@ -1816,6 +1816,7 @@ class MainWindow(QMainWindow): kwargs = self.getFilterOptions()[self.getSeismicPhase()].parseFilterOptions() self.pushFilterWF(kwargs) self.plotWaveformDataThread() + return True def checkFilterOptions(self): fstring = "Filter Options" diff --git a/pylot/RELEASE-VERSION b/pylot/RELEASE-VERSION index 8d6b1403..b7c866b9 100644 --- a/pylot/RELEASE-VERSION +++ b/pylot/RELEASE-VERSION @@ -1 +1 @@ -a76d-dirty +8d6de0-dirty diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index e31dc46b..56b6c2a6 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -1547,7 +1547,14 @@ class PickDlg(QDialog): filterMenu.addAction(filterOptionsAction) def filterOptions(self): - self.orig_parent.adjustFilterOptions() + if self.orig_parent.adjustFilterOptions(): + phase = None + if self.filterActionP.isChecked(): + phase = 'P' + elif self.filterActionS.isChecked(): + phase = 'S' + if phase: + self.plotWFData(phase=phase, filter=True) def disable_ar_buttons(self): self.enable_ar_buttons(False)