diff --git a/pylot/core/util/widgets.py b/pylot/core/util/widgets.py index 26ad0114..8fc47268 100644 --- a/pylot/core/util/widgets.py +++ b/pylot/core/util/widgets.py @@ -843,10 +843,11 @@ class InputsTab(PropTab): # get the full name of the actual user self.fullNameEdit = QLineEdit() - self.fullNameEdit.setText(fulluser[0]) + self.fullNameEdit.setText(fulluser) # information about data structure dataroot = settings.value("data/dataRoot") + curstructure = settings.value("data/Structure") dataDirLabel = QLabel("data root directory: ") self.dataDirEdit = QLineEdit() self.dataDirEdit.setText(dataroot) @@ -858,6 +859,10 @@ class InputsTab(PropTab): self.structureSelect.addItems(DATASTRUCTURE.keys()) + dsind = findComboBoxIndex(self.structureSelect, curstructure) + + self.structureSelect.setCurrentIndex(dsind) + layout = QGridLayout() layout.addWidget(dataDirLabel, 0, 0) layout.addWidget(self.dataDirEdit, 0, 1)