From ab29b78e6dbdde502a3a0603ee1d4aee904a0b92 Mon Sep 17 00:00:00 2001 From: Gary Burton Date: Sat, 15 Dec 2007 21:55:08 +0000 Subject: [PATCH] 2007-12-15 Gary Burton * src/Editors/_EditFamily.py: emit family-update signal #1416 svn: r9511 --- ChangeLog | 3 +++ src/Editors/_EditFamily.py | 9 +++++++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 712b542e7..bef9a4a29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-12-15 Gary Burton + * src/Editors/_EditFamily.py: emit family-update signal #1416 + 2007-12-14 Benny Malengier * src/RelLib/_Repository.py: Repo has address which can have source, so backref of source to repo must be allowed and added! diff --git a/src/Editors/_EditFamily.py b/src/Editors/_EditFamily.py index 432086168..e9ed37779 100644 --- a/src/Editors/_EditFamily.py +++ b/src/Editors/_EditFamily.py @@ -898,6 +898,15 @@ class EditFamily(EditPrimary): else: self.db.commit_family(self.obj, trans) self.db.transaction_commit(trans, _("Edit Family")) + else: + # Signal an update to allow other windows that use family data to + # refresh. The family-update signal is normally only emitted when + # the family record itself changes, however the Relationship view + # needs to know to refresh when related data such as the marriage + # event may have been altered. + # Bug #1416 + self.db.emit('family-update', ([],)) + self.close()