# HG changeset patch # User lbessard # Date 1211563781 -7200 # Node ID ac7ba3dc027b9f51f10016edca44fd1d11207b59 # Parent 17ce08b8177528d290fb12e53fdee0200abbba12 Bug fixed with Drag and Drop of FunctionBlocks from Variable Panel diff -r 17ce08b81775 -r ac7ba3dc027b 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")