[update] apply new filter settings after selection

This commit is contained in:
Marcel Paffrath 2018-01-10 16:08:28 +01:00
parent 8d6de02afe
commit 78d5ee58b5
3 changed files with 10 additions and 2 deletions

View File

@ -1816,6 +1816,7 @@ class MainWindow(QMainWindow):
kwargs = self.getFilterOptions()[self.getSeismicPhase()].parseFilterOptions() kwargs = self.getFilterOptions()[self.getSeismicPhase()].parseFilterOptions()
self.pushFilterWF(kwargs) self.pushFilterWF(kwargs)
self.plotWaveformDataThread() self.plotWaveformDataThread()
return True
def checkFilterOptions(self): def checkFilterOptions(self):
fstring = "Filter Options" fstring = "Filter Options"

View File

@ -1 +1 @@
a76d-dirty 8d6de0-dirty

View File

@ -1547,7 +1547,14 @@ class PickDlg(QDialog):
filterMenu.addAction(filterOptionsAction) filterMenu.addAction(filterOptionsAction)
def filterOptions(self): 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): def disable_ar_buttons(self):
self.enable_ar_buttons(False) self.enable_ar_buttons(False)