From 3bbcaa3418b5b7eb9863325ad487ca70640fa27b Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Fri, 21 Sep 2001 22:56:34 +0000 Subject: [PATCH] no message svn: r420 --- src/EditPerson.py | 3 +++ src/gramps_main.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/EditPerson.py b/src/EditPerson.py index 11ae0736b..92157c63d 100644 --- a/src/EditPerson.py +++ b/src/EditPerson.py @@ -1120,6 +1120,9 @@ def save_person(obj): if idval != person.getId(): m = epo.db.getPersonMap() if not m.has_key(idval): + if m.has_key(person.getId()): + del m[person.getId()] + m[idval] = person person.setId(idval) else: n = Config.nameof(m[idval]) diff --git a/src/gramps_main.py b/src/gramps_main.py index 548709b02..21689d52b 100755 --- a/src/gramps_main.py +++ b/src/gramps_main.py @@ -2064,7 +2064,10 @@ def on_spouselist_changed(obj): # #------------------------------------------------------------------------- def new_after_edit(epo): - database.addPerson(epo.person) + if epo.person.getId() == "": + database.addPerson(epo.person) + else: + database.addPersonNoMap(epo.person,epo.person.getId()) change_active_person(epo.person) redisplay_person_list(epo.person)