From 3e5827b671b5dcf00a0baf3786dc2c644385403d Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sat, 21 Aug 2004 03:36:00 +0000 Subject: [PATCH] * src/gramps_main.py: update family display after EditPerson * src/EditPerson.py: fix callback svn: r3456 --- ChangeLog | 4 ++++ src/EditPerson.py | 7 +++---- src/gramps_main.py | 1 + 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 61d440d75..b86fca507 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-08-20 Don Allingham + * src/gramps_main.py: update family display after EditPerson + * src/EditPerson.py: fix callback + 2004-08-20 Alex Roitman * src/plugins/rel_da.py: Convert to new interface. Add to CVS. * src/plugins/rel_fi.py: Convert to new interface. Add to CVS. diff --git a/src/EditPerson.py b/src/EditPerson.py index 7cc972801..a55a895f7 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -1611,13 +1611,12 @@ class EditPerson: if self.lists_changed: self.person.set_source_reference_list(self.srcreflist) - self.update_lists() - if self.callback: - self.callback(self,trans) - self.db.commit_person(self.person, trans) n = self.person.get_primary_name().get_regular_name() self.db.transaction_commit(trans,_("Edit Person (%s)") % n) + self.update_lists() + if self.callback: + self.callback(self,0) self.close() def get_place(self,field,makenew=0): diff --git a/src/gramps_main.py b/src/gramps_main.py index bbf70f908..4163006b8 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -1472,6 +1472,7 @@ class Gramps: id = epo.person.get_handle() path = self.people_view.person_model.on_get_path(id) self.people_view.person_model.row_changed(path,iter) + self.family_view.load_family() self.update_display(0) def update_after_merge(self,person,old_id):