* src/DataViews/_PersonView.py (delete_person_response): Use child_ref.

svn: r6587
This commit is contained in:
Alex Roitman 2006-05-08 19:08:03 +00:00
parent 4db67268a4
commit 7739ac2ec2
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2006-05-08 Alex Roitman <shura@gramps-project.org>
* src/DataViews/_PersonView.py (delete_person_response): Use child_ref.
* src/plugins/Leak.py: Typo.
* src/plugins/Eval.py: Convert to ManagedWindow.
* src/GrampsDb/_GrampsBSDDB.py (gramps_upgrade_9): Add callname to

View File

@ -505,8 +505,8 @@ class PersonView(PageView.PersonNavView):
else:
family_to_remove = True
if family_to_remove:
for child_handle in family.get_child_handle_list():
child = self.dbstate.db.get_person_from_handle(child_handle)
for child_ref in family.get_child_ref_list():
child = self.dbstate.db.get_person_from_handle(child_ref.ref)
child.remove_parent_family_handle(family_handle)
self.dbstate.db.commit_person(child,trans)
self.dbstate.db.remove_family(family_handle,trans)