Skip to content
Snippets Groups Projects
Commit eaf5cc8f authored by Ivo Peterek's avatar Ivo Peterek
Browse files

FIX: time-energy vars display full label names #2

parent 89bb9e95
No related branches found
No related tags found
No related merge requests found
......@@ -634,8 +634,8 @@ class Ui_TabWidget(object):
def __tree_select(self, item, column):
if item.checkState(column) == QtCore.Qt.Checked and item.text(0) not in self.ylabel_dic.keys():
self.possible_time_vars.append(item.text(0))
self.possible_energy_vars.append(item.text(0))
self.possible_time_vars.append(item.parent().text(0) + ' ' + item.text(0))
self.possible_energy_vars.append(item.parent().text(0) + ' ' + item.text(0))
act_energy_label = self.comboBox_energy.currentText()
act_time_label = self.comboBox_time.currentText()
self.comboBox_energy.clear()
......@@ -646,9 +646,9 @@ class Ui_TabWidget(object):
self.comboBox_time.setCurrentIndex(self.comboBox_time.findText(act_time_label))
elif item.checkState(column) == QtCore.Qt.Unchecked and item.text(0) not in self.ylabel_dic.keys():
if item.text(0) in self.possible_time_vars:
self.possible_time_vars.remove(item.text(0))
self.possible_time_vars.remove(item.parent().text(0) + ' ' + item.text(0))
if item.text(0) in self.possible_energy_vars:
self.possible_energy_vars.remove(item.text(0))
self.possible_energy_vars.remove(item.parent().text(0) + ' ' + item.text(0))
act_energy_label = self.comboBox_energy.currentText()
act_time_label = self.comboBox_time.currentText()
self.comboBox_energy.clear()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment