diff -r 2c8d96d47cda -r 15f23ed3f216 Graphics/UMLItem.py --- a/Graphics/UMLItem.py Fri May 30 13:17:20 2014 +0200 +++ b/Graphics/UMLItem.py Fri May 30 15:16:40 2014 +0200 @@ -104,7 +104,7 @@ @param assoc association to be added (AssociationWidget) """ - if assoc and not assoc in self.associations: + if assoc and assoc not in self.associations: self.associations.append(assoc) def removeAssociation(self, assoc):