Graphics/UMLItem.py

changeset 3621
15f23ed3f216
parent 3591
2f2a4a76dd22
child 3656
441956d8fce5
--- 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):

eric ide

mercurial