From 7a9c44198f03019d85cc123c5a1097c3a02733b2 Mon Sep 17 00:00:00 2001 From: Sebastian Wehling-Benatelli Date: Tue, 24 Nov 2015 11:05:19 +0100 Subject: [PATCH] [bugfix] currently set data structure now selected in QComboBox widget --- pylot/core/util/widgets.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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)