From f33cc355501acedd88ecd1136ec1cec47a7e0181 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Thu, 17 Feb 2005 02:24:23 +0000 Subject: [PATCH] * src/EditSource.py: commit events after deleting sources svn: r4042 --- gramps2/ChangeLog | 3 +++ gramps2/src/EditSource.py | 2 ++ 2 files changed, 5 insertions(+) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 7170b7fb0..ab1d496e1 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,6 @@ +2005-02-16 Don Allingham + * src/EditSource.py: commit events after deleting sources + 2005-02-16 Eero Tamminen * src/plugins/GraphViz.py: 'pagesv' value comes from 'vpages' field, not 'hpages' diff --git a/gramps2/src/EditSource.py b/gramps2/src/EditSource.py index 2bbb92674..b373d1e33 100644 --- a/gramps2/src/EditSource.py +++ b/gramps2/src/EditSource.py @@ -483,9 +483,11 @@ class DelSrcQuery: v = self.db.get_event_from_handle(v_id) if v: commit += self.delete_source(v) + self.db.commit_event(v,trans) for v in p.get_attribute_list(): commit += self.delete_source(v) + self.db.commit_event(v,trans) if commit > 0: self.db.commit_family(p,trans)