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

Detect variables with undefined types on the fly

parent adf2b306
......@@ -2420,7 +2420,14 @@ class OG_MainWindow(QtGui.QMainWindow, object):
map(partial(add_elem, timers), sorted(context.timers))
for var, (sort, _) in context.variables.viewitems():
QtGui.QTreeWidgetItem(dcl, [var, sort.ReferencedTypeName])
sort_name = sort.ReferencedTypeName
except AttributeError:
sort_name = "Undefined"
'Warning: Type of variable "{}" is undefined'
QtGui.QTreeWidgetItem(dcl, [var, sort_name])
elif self.view.scene().context == 'procedure':
map(lambda elem: change_state(elem, True), (in_sig, states))
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