controls/DebugVariablePanel/DebugVariableViewer.py
branchpython3
changeset 3764 d92c1a3dafa7
parent 3750 f62625418bff
child 3765 88fe6fc9fd38
--- a/controls/DebugVariablePanel/DebugVariableViewer.py	Fri Oct 28 18:54:33 2022 +0800
+++ b/controls/DebugVariablePanel/DebugVariableViewer.py	Fri Oct 28 18:59:04 2022 +0800
@@ -150,7 +150,7 @@
         Function that unsubscribe and remove every item that store values of
         a variable that doesn't exist in PLC anymore
         """
-        for item in list(self.ItemsDict.values())[:]:
+        for item in self.ItemsDict.values():
             iec_path = item.GetVariable()
 
             # Check that variablepath exist in PLC