From 43c22b8f3f2795eb834f683dcaa37cc8aba6104f 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 --- src/gramps_main.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gramps_main.py b/src/gramps_main.py index 74ad9c2b1..035646f1d 100755 --- a/src/gramps_main.py +++ b/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"