Fixed removing of alternate families.
svn: r649
This commit is contained in:
parent
11feddf68d
commit
986b825786
@ -1049,8 +1049,9 @@ class Person:
|
|||||||
|
|
||||||
def removeAltFamily(self,family):
|
def removeAltFamily(self,family):
|
||||||
"""removes a Family instance from the alternate family list"""
|
"""removes a Family instance from the alternate family list"""
|
||||||
for family in self.AltFamilyList:
|
for f in self.AltFamilyList[:]:
|
||||||
self.AltFamilyList.remove(family)
|
if f[0] == family:
|
||||||
|
self.AltFamilyList.remove(f)
|
||||||
|
|
||||||
def setMainFamily(self,family):
|
def setMainFamily(self,family):
|
||||||
"""sets the main Family of the Person, the Family in which the
|
"""sets the main Family of the Person, the Family in which the
|
||||||
|
Loading…
Reference in New Issue
Block a user