[bugfix] emitted signal disturbing reset feature
This commit is contained in:
parent
2e5ed974f0
commit
bff888c98a
@ -1 +1 @@
|
|||||||
90bc-dirty
|
2e5e-dirty
|
||||||
|
@ -4684,19 +4684,22 @@ class FilterOptionsWidget(QWidget):
|
|||||||
self.comparable = all(comparable)
|
self.comparable = all(comparable)
|
||||||
|
|
||||||
def setMFtoWidget(self):
|
def setMFtoWidget(self):
|
||||||
self.selectTypeCombo.setCurrentIndex(self.typeOptions.index(self.getFilterOptions().getFilterType()))
|
|
||||||
try:
|
try:
|
||||||
freqmin, freqmax = self.filterOptions.getFreq()
|
freqmin, freqmax = self.filterOptions.getFreq()
|
||||||
self.freqminSpinBox.setValue(freqmin)
|
|
||||||
self.freqmaxSpinBox.setValue(freqmax)
|
|
||||||
except TypeError as e:
|
except TypeError as e:
|
||||||
print(e)
|
print(e)
|
||||||
self.freqmaxSpinBox.setValue(1.)
|
freqmin, freqmax = (0.1, 1.0)
|
||||||
self.freqminSpinBox.setValue(.1)
|
|
||||||
try:
|
try:
|
||||||
self.orderSpinBox.setValue(self.getFilterOptions().getOrder())
|
order = self.getFilterOptions().getOrder()
|
||||||
except:
|
except TypeError as e:
|
||||||
self.orderSpinBox.setValue(2)
|
print(e)
|
||||||
|
order = 4
|
||||||
|
ftype = self.getFilterOptions().getFilterType()
|
||||||
|
|
||||||
|
self.selectTypeCombo.setCurrentIndex(self.typeOptions.index(ftype))
|
||||||
|
self.freqminSpinBox.setValue(freqmin)
|
||||||
|
self.freqmaxSpinBox.setValue(freqmax)
|
||||||
|
self.orderSpinBox.setValue(order)
|
||||||
|
|
||||||
def updateMFfromWidget(self):
|
def updateMFfromWidget(self):
|
||||||
type = self.selectTypeCombo.currentText()
|
type = self.selectTypeCombo.currentText()
|
||||||
|
Loading…
Reference in New Issue
Block a user