[bugfix] workaround: if datastructure not set

This commit is contained in:
Marcel Paffrath 2017-09-11 13:28:39 +02:00
parent 1862b6d6e1
commit b1a12bf666

View File

@ -173,6 +173,8 @@ class MainWindow(QMainWindow):
self.fnames = None
self._stime = None
structure_setting = settings.value("data/Structure", "PILOT")
if not structure_setting:
structure_setting = 'PILOT'
self.dataStructure = DATASTRUCTURE[structure_setting]()
self.seismicPhase = str(settings.value("phase", "P"))
if settings.value("data/dataRoot", None) is None: