Fixed bug when registering debugged variables after transferring new PLC
authorlaurent
Tue, 15 May 2012 05:19:13 +0900
changeset 688 188906a7368c
parent 680 b693147fb2c3
child 689 ce605c1a6d04
Fixed bug when registering debugged variables after transferring new PLC
PLCOpenEditor.py
debian/rules
generate_IEC_std.py
i18n/PLCOpenEditor_zh_CN.po
xmlclass/po.xml
xmlclass/test.xsd
xmlclass/xmlclass.py
--- a/PLCOpenEditor.py	Fri May 04 19:20:46 2012 +0200
+++ b/PLCOpenEditor.py	Tue May 15 05:19:13 2012 +0900
@@ -4486,11 +4486,12 @@
         items = [(idx, item) for idx, item in enumerate(self.Table.GetData())]
         items.reverse()
         for idx, item in items:
-            if self.GetDataType(item.GetVariable().upper()) is None:
+            iec_path = item.GetVariable().upper()
+            if self.GetDataType(iec_path) is None:
                 self.RemoveDataConsumer(item)
                 self.Table.RemoveItem(idx)
             else:
-                self.AddDataConsumer(iec_path.upper(), item)
+                self.AddDataConsumer(iec_path, item)
         self.Freeze()
         self.Table.ResetView(self.VariablesGrid)
         self.VariablesGrid.RefreshButtons()