new QSettings added

This commit is contained in:
Sebastian Wehling-Benatelli 2014-12-01 12:36:23 +01:00
parent 746b073572
commit 9d38ed9771

View File

@ -53,9 +53,14 @@ class MainWindow(QMainWindow):
super(MainWindow, self).__init__(parent)
settings = QSettings()
self.recentEvents = settings.value("recentEvents", [])
self.setWindowTitle("PyLoT - do seismic processing the pythonic way")
self.setWindowIcon(QIcon(":/icon.ico"))
self.seismicPhase = str(settings.value("phase", "P"))
if settings.value("dataRoot", None) is None:
dirname = QFileDialog().getExistingDirectory()
settings.setValue("dataRoot", dirname)
settings.sync()
# initialize filter parameter
filterOptionsP = FILTERDEFAULTS['P']