[bugfix] currently set data structure now selected in QComboBox widget

This commit is contained in:
Sebastian Wehling-Benatelli 2015-11-24 11:05:19 +01:00
parent 69efd4d411
commit 7a9c44198f

View File

@ -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)