diff --git a/ChangeLog b/ChangeLog index aae989ebf..d884d2ccc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,5 @@ 2006-03-05 Don Allingham + * src/Editors/_EditEventRef.py: add vs. commit handling * src/Editors/_EditPerson.py: handle None as person * src/TipOfDay.py: Fix the image location * src/Editors/_EditPerson.py: fix focus_out_event diff --git a/src/Editors/_EditEventRef.py b/src/Editors/_EditEventRef.py index 7f03c7d05..b55b4a17a 100644 --- a/src/Editors/_EditEventRef.py +++ b/src/Editors/_EditEventRef.py @@ -202,14 +202,15 @@ class EditEventRef(EditReference): self.source.set_place_handle(handle) trans = self.db.transaction_begin() - self.db.commit_event(self.source,trans) if self.source.handle: if need_new: self.db.add_place(place_obj,trans) + self.db.commit_event(self.source,trans) self.db.transaction_commit(trans,_("Modify Event")) else: if need_new: self.db.add_place(place_obj,trans) + self.db.add_event(self.source,trans) self.db.transaction_commit(trans,_("Add Event")) self.source_ref.ref = self.source.handle