From 5badd6ca06df78a77dbd7ebb318c9b5bacd9adaa Mon Sep 17 00:00:00 2001 From: Michiel Nauta Date: Sun, 6 Mar 2011 18:59:10 +0000 Subject: [PATCH] Store changed children during family deletion svn: r16768 --- src/plugins/tool/Check.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/plugins/tool/Check.py b/src/plugins/tool/Check.py index b4c654f7c..4047b4406 100644 --- a/src/plugins/tool/Check.py +++ b/src/plugins/tool/Check.py @@ -752,8 +752,11 @@ class CheckIntegrity(object): def delete_empty_family(self, family_handle): for key in self.db.get_person_handles(sort_handles=False): child = self.db.get_person_from_handle(key) - child.remove_parent_family_handle(family_handle) - child.remove_family_handle(family_handle) + changed = False + changed |= child.remove_parent_family_handle(family_handle) + changed |= child.remove_family_handle(family_handle) + if changed: + self.db.commit_person(child, self.trans) self.db.remove_family(family_handle, self.trans) def check_parent_relationships(self):