PLCControler.py
changeset 108 9aa1fdfb7cb2
parent 107 255eada20688
child 116 58b9b84e385f
--- a/PLCControler.py	Fri Oct 05 18:11:51 2007 +0200
+++ b/PLCControler.py	Wed Oct 17 17:50:27 2007 +0200
@@ -515,6 +515,7 @@
         if old_computedname in self.ElementsOpened:
             idx = self.ElementsOpened.index(old_computedname)
             self.ElementsOpened[idx] = new_computedname
+        pou.updateElementName(old_name, new_name)
         self.BufferProject()
     
     # Change the name of a pou action
@@ -529,6 +530,7 @@
         if old_computedname in self.ElementsOpened:
             idx = self.ElementsOpened.index(old_computedname)
             self.ElementsOpened[idx] = new_computedname
+        pou.updateElementName(old_name, new_name)
         self.BufferProject()
     
     # Change the name of a pou variable