From 9d38ed977188983a2832d8f5f9b2abf112045888 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Mon, 1 Dec 2014 12:36:23 +0100 Subject: [PATCH] new QSettings added --- QtPyLoT.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/QtPyLoT.py b/QtPyLoT.py index 1f61a4ac..ba91923f 100755 --- a/QtPyLoT.py +++ b/QtPyLoT.py @@ -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']