diff --git a/gramps/gen/merge/mergepersonquery.py b/gramps/gen/merge/mergepersonquery.py index f53a735bc..f7162819c 100644 --- a/gramps/gen/merge/mergepersonquery.py +++ b/gramps/gen/merge/mergepersonquery.py @@ -182,5 +182,7 @@ class MergePersonQuery: self.database.commit_family(family, trans) parent_list.append(parents) + if self.database.get_default_handle() == old_handle: + self.database.set_default_person_handle(None) self.database.remove_person(old_handle, trans) return family_merge_ok