# HG changeset patch # User Laurent Bessard # Date 1363819627 -3600 # Node ID 7f57b969caedbc1b29e20ab97547ca2101b8f34d # Parent b24c11c9376635800fe87860c671c34e23f88f8e Fixed bug on variables with empty name in VariablePanel can't be edited diff -r b24c11c93766 -r 7f57b969caed plcopen/plcopen.py --- a/plcopen/plcopen.py Sun Mar 17 19:03:25 2013 +0100 +++ b/plcopen/plcopen.py Wed Mar 20 23:47:07 2013 +0100 @@ -1383,7 +1383,7 @@ setattr(cls, "removepouVar", removepouVar) def hasblock(self, name): - if self.getbodyType() in ["FBD", "LD", "SFC"]: + if name != "" and self.getbodyType() in ["FBD", "LD", "SFC"]: for instance in self.getinstances(): if isinstance(instance, PLCOpenClasses["fbdObjects_block"]) and instance.getinstanceName() == name: return True