Fixed bug PouInstancePanel not updated when drag'n dropping variable from extensions
authorLaurent Bessard
Sun, 24 Feb 2013 00:28:49 +0100
changeset 940 0c68d1af821d
parent 939 7c5bb4459993
child 941 b6e93549de2e
Fixed bug PouInstancePanel not updated when drag'n dropping variable from extensions
editors/Viewer.py
--- a/editors/Viewer.py	Fri Feb 22 00:28:42 2013 +0100
+++ b/editors/Viewer.py	Sun Feb 24 00:28:49 2013 +0100
@@ -303,6 +303,7 @@
                         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, location, values[4])
                             self.ParentWindow.RefreshVariablePanel()
+                            self.ParentWindow.ParentWindow.RefreshPouInstanceVariablesPanel()
                         self.ParentWindow.AddVariableBlock(x, y, scaling, var_class, var_name, var_type)
             elif values[1] == "Global":
                 var_name = values[0]