Fix adding spouse after family exists

svn: r6301
This commit is contained in:
Don Allingham 2006-04-10 16:11:03 +00:00
parent 44e127abba
commit 6b970e3659
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2006-04-10 Don Allingham <don@gramps-project.org>
* src/Editors/_EditFamily.py: Fix adding of spouse after family
has been created
2006-04-09 Alex Roitman <shura@gramps-project.org>
* src/ViewManager.py (ViewManager.create_pages): Use toggle
buttons on the sidebar.

View File

@ -761,7 +761,7 @@ class EditFamily(EditPrimary):
person.family_list.remove(self.obj.handle)
self.db.commit_person(person,trans)
if new_handle:
person = self.db.get_person_from_handle(orig_handle)
person = self.db.get_person_from_handle(new_handle)
if self.obj.handle not in person.family_list:
person.family_list.append(self.obj.handle)
self.db.commit_person(person,trans)