Handle single parent family entry better

svn: r324
This commit is contained in:
Don Allingham 2001-08-11 02:47:33 +00:00
parent 6599b2101b
commit d0c1bc3d03

View File

@ -1074,6 +1074,9 @@ def change_family_type(family,mrel,frel):
active_person.addAltFamily(family,mrel,frel) active_person.addAltFamily(family,mrel,frel)
utils.modified() utils.modified()
break break
else:
if is_main:
active_person.setMainFamily(family)
else: else:
active_person.addAltFamily(family,mrel,frel) active_person.addAltFamily(family,mrel,frel)
utils.modified() utils.modified()
@ -1107,6 +1110,10 @@ def on_save_parents_clicked(obj):
x = select_father x = select_father
select_father = select_mother select_father = select_mother
select_mother = x 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(): elif select_mother.getGender() != select_father.getGender():
if type == "Partners": if type == "Partners":
type = "Unknown" type = "Unknown"