[bugfix] currently set data structure now selected in QComboBox widget
This commit is contained in:
parent
69efd4d411
commit
7a9c44198f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user