PLCOpenEditor.py
changeset 211 ac7ba3dc027b
parent 210 17ce08b81775
child 212 e36ba4f15fc8
--- a/PLCOpenEditor.py	Fri May 23 10:42:09 2008 +0200
+++ b/PLCOpenEditor.py	Fri May 23 19:29:41 2008 +0200
@@ -3752,7 +3752,8 @@
         return VariableTypeFunction
     
     def OnVariablesGridCellLeftClick(self, event):
-        if event.GetCol() == 0:
+        row = event.GetRow()
+        if event.GetCol() == 0 and self.Table.GetValueByName(row, "Edit"):
             row = event.GetRow()
             var_name = self.Table.GetValueByName(row, "Name")
             var_class = self.Table.GetValueByName(row, "Class")