changed loading of filter options, now immediately either a error status message or a success message is displayed in the main window if the filter parameter could not be loaded or were loaded respectively
This commit is contained in:
parent
77e7f666f0
commit
c03b8a220f
@ -97,9 +97,14 @@ class MainWindow(QMainWindow):
|
||||
self.data.plotData(self.DataPlot)
|
||||
|
||||
def updateFilterOptions(self):
|
||||
self.filteroptions = [self.filterOptionsP
|
||||
if not self.seismicPhase == 'S'
|
||||
else self.filterOptionsS]
|
||||
try:
|
||||
self.filteroptions = [self.filterOptionsP
|
||||
if not self.seismicPhase == 'S'
|
||||
else self.filterOptionsS]
|
||||
except e:
|
||||
self.updateStatus('Error: %s' % e + ' ... no filteroptions loaded')
|
||||
else:
|
||||
self.updateStatus('Filteroptions succesfully loaded ...')
|
||||
|
||||
def updateStatus(self, message):
|
||||
self.statusBar().showMessage(message, 5000)
|
||||
|
Loading…
Reference in New Issue
Block a user