Handle single parent family entry better

svn: r324
This commit is contained in:
Don Allingham 2001-08-11 02:47:33 +00:00
parent a0bc85f0c4
commit 43c22b8f3f

View File

@ -1074,6 +1074,9 @@ def change_family_type(family,mrel,frel):
active_person.addAltFamily(family,mrel,frel)
utils.modified()
break
else:
if is_main:
active_person.setMainFamily(family)
else:
active_person.addAltFamily(family,mrel,frel)
utils.modified()
@ -1107,6 +1110,10 @@ def on_save_parents_clicked(obj):
x = select_father
select_father = select_mother
select_mother = x
elif select_mother and not select_father:
family = find_family(None,select_mother)
elif select_father and not select_mother:
family = find_family(select_father)
elif select_mother.getGender() != select_father.getGender():
if type == "Partners":
type = "Unknown"