From d0c1bc3d0387aaaa6934824a011ba67caec95224 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 11 Aug 2001 02:47:33 +0000 Subject: [PATCH] Handle single parent family entry better svn: r324 --- gramps/src/gramps_main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gramps/src/gramps_main.py b/gramps/src/gramps_main.py index 74ad9c2b1..035646f1d 100755 --- a/gramps/src/gramps_main.py +++ b/gramps/src/gramps_main.py @@ -1075,7 +1075,10 @@ def change_family_type(family,mrel,frel): utils.modified() break else: - active_person.addAltFamily(family,mrel,frel) + 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"