# HG changeset patch # User lbessard # Date 1231958761 -3600 # Node ID 43e10dccc16a5e435a7614ae558c8af5c497bef8 # Parent b5e564608b9eeb12b9cddf8713e93698e79257a2 Bug while drag and drop simple variables poping menu fixed diff -r b5e564608b9e -r 43e10dccc16a Viewer.py --- 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)