--- a/Viewer.py Wed Jan 14 19:45:22 2009 +0100
+++ b/Viewer.py Wed Jan 14 19:46:01 2009 +0100
@@ -162,7 +162,7 @@
var_class = INPUT
tree = dict([(var["Name"], var["Tree"]) for var in self.ParentWindow.Controler.GetEditedElementInterfaceVars(tagname, self.ParentWindow.Debug)]).get(values[0], None)
if tree is not None:
- if len(tree) > 0:
+ if len(tree[0]) > 0:
menu = wx.Menu(title='')
self.GenerateTreeMenu(x, y, scaling, menu, "", var_class, [(values[0], values[2], tree)])
self.ParentWindow.PopupMenuXY(menu)