Bug while trying to refresh InstancesTree fixed
authorlaurent
Fri, 23 Oct 2009 10:43:31 +0200
changeset 449 19720ee1051c
parent 448 93a2f2034f98
child 450 b31d1dfb407b
Bug while trying to refresh InstancesTree fixed
VariablePanel.py
--- a/VariablePanel.py	Mon Oct 19 15:58:20 2009 +0200
+++ b/VariablePanel.py	Fri Oct 23 10:43:31 2009 +0200
@@ -604,7 +604,7 @@
         self.Controler.SetPouInterfaceReturnType(words[1], self.ReturnType.GetStringSelection())
         self.Controler.BufferProject()
         self.ParentWindow.RefreshEditor(variablepanel = False)
-        self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCETREE, LIBRARYTREE)
+        self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCESTREE, LIBRARYTREE)
         event.Skip()
     
     def OnClassFilter(self, event):
@@ -707,7 +707,7 @@
                     self.Controler.UpdateEditedElementUsedVariable(self.TagName, old_value, value)
                 self.Controler.BufferProject()
                 self.ParentWindow.RefreshEditor(variablepanel = False)
-                self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCETREE, LIBRARYTREE)            
+                self.ParentWindow._Refresh(TITLE, EDITMENU, INSTANCESTREE, LIBRARYTREE)            
                 event.Skip()
         else:
             self.SaveValues()