diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 80a903f01..bb720d304 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,6 +1,7 @@ 2006-05-17 Don Allingham * src/Editors/_EditPlace.py: new SelectPlace interface - * src/Editors/_EditEventRef.py: new SelectPlace interface + * src/Editors/_EditEventRef.py: new SelectPlace interface, remove + old code * src/Editors/_EditEvent.py: new SelectPlace interface * src/GrampsWidgets.py: new Place editor interface diff --git a/gramps2/src/Editors/_EditEventRef.py b/gramps2/src/Editors/_EditEventRef.py index ee4eca875..cb1d5632c 100644 --- a/gramps2/src/Editors/_EditEventRef.py +++ b/gramps2/src/Editors/_EditEventRef.py @@ -195,24 +195,11 @@ class EditEventRef(EditReference): def ok_clicked(self,obj): - (need_new, handle) = self.place_field.get_place_info() - if need_new: - place_obj = RelLib.Place() - place_obj.set_handle(Utils.create_id()) - place_obj.set_title(handle) - self.source.set_place_handle(place_obj.get_handle()) - else: - self.source.set_place_handle(handle) - trans = self.db.transaction_begin() if self.source.handle: - if need_new: - self.db.add_place(place_obj,trans) self.commit_event(self.source,trans) self.db.transaction_commit(trans,_("Modify Event")) else: - if need_new: - self.db.add_place(place_obj,trans) self.add_event(self.source,trans) self.db.transaction_commit(trans,_("Add Event")) self.source_ref.ref = self.source.handle