[bugfix] changed code order for QSettings

This commit is contained in:
Marcel Paffrath 2017-06-02 14:02:08 +02:00
parent f7af1d0b1b
commit 530a629d15
2 changed files with 3 additions and 4 deletions

View File

@ -142,9 +142,6 @@ class MainWindow(QMainWindow):
# setup UI
self.setupUi()
if settings.value('compclass', None) is None:
settings.setValue('compclass', SetChannelComponents())
if settings.value("user/FullName", None) is None:
fulluser = QInputDialog.getText(self, "Enter Name:", "Full name")
settings.setValue("user/FullName", fulluser)
@ -164,6 +161,8 @@ class MainWindow(QMainWindow):
dirname = QFileDialog().getExistingDirectory(
caption='Choose data root ...')
settings.setValue("data/dataRoot", dirname)
if settings.value('compclass', None) is None:
settings.setValue('compclass', SetChannelComponents())
settings.sync()
self.filteroptions = {}

View File

@ -1 +1 @@
0fb6-dirty
f7af-dirty