Bug variable panel not refreshed when dropping located variables fixed
authorlaurent
Wed, 30 Mar 2011 17:59:54 +0200
changeset 511 38fdcbc8ebd7
parent 510 e7327ea490b4
child 512 07a7989f58e4
Bug variable panel not refreshed when dropping located variables fixed
Viewer.py
--- a/Viewer.py	Wed Mar 30 17:52:07 2011 +0200
+++ b/Viewer.py	Wed Mar 30 17:59:54 2011 +0200
@@ -283,6 +283,7 @@
                             var_type = LOCATIONDATATYPES.get(values[0][2], ["BOOL"])[0]
                         if not var_name.upper() in [name.upper() for name in self.ParentWindow.Controler.GetEditedElementVariables(tagname, self.ParentWindow.Debug)]:
                             self.ParentWindow.Controler.AddEditedElementPouVar(tagname, var_type, var_name, values[0], values[4])
+                        self.ParentWindow.ParentWindow.RefreshVariablePanel(tagname)
                         self.ParentWindow.AddVariableBlock(x, y, scaling, var_class, var_name, var_type)
             elif values[3] == tagname:
                 if values[1] == "Output":