Bug fixed with Drag and Drop of FunctionBlocks from Variable Panel
authorlbessard
Fri, 23 May 2008 19:29:41 +0200
changeset 211 ac7ba3dc027b
parent 210 17ce08b81775
child 212 e36ba4f15fc8
Bug fixed with Drag and Drop of FunctionBlocks from Variable Panel
PLCOpenEditor.py
--- 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")