Commit aa76969a authored by Maxime Perrotin's avatar Maxime Perrotin
Browse files

Use the right attribute

parent 4ecfd68d
......@@ -2240,7 +2240,8 @@ class OG_MainWindow(QtGui.QMainWindow, object):
# Update the data dictionary
item = self.datadict.topLevelItem(0)
item.takeChildren() # remove old children
for name, sort in sorted(ast.dataview.viewitems(), key=lambda (x,_): x):
for name, sort in sorted(ast.dataview.viewitems(),
key=lambda (name, sort): name):
new_item = QtGui.QTreeWidgetItem(item,
[name.replace('-', '_'),
'view'])
......
......@@ -1053,7 +1053,7 @@ class Process(HorizontalSymbol):
def update_completion_list(self, pr_text):
''' When text was entered, update completion list at block level '''
for each in CONTEXT.processes:
if unicode(self.text).lower() == each.inputString:
if unicode(self.text).lower() == each.processName:
break
else:
new_proc = ogAST.Process()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment