* src/EditPerson.py: call new_after_edit instead of update_after_edit

for new people.


svn: r4151
This commit is contained in:
Don Allingham 2005-03-10 01:02:09 +00:00
parent ddff08d24e
commit ebedde9f09
2 changed files with 15 additions and 3 deletions

View File

@ -1,4 +1,6 @@
2005-03-09 Don Allingham <don@gramps-project.org> 2005-03-09 Don Allingham <don@gramps-project.org>
* src/EditPerson.py: call new_after_edit instead of update_after_edit
for new people.
* src/EditPerson.py: add srcref as a drag and drop item * src/EditPerson.py: add srcref as a drag and drop item
* src/EditPlace.py: add srcref as a drag and drop item * src/EditPlace.py: add srcref as a drag and drop item
* src/Marriage.py: add srcref as a drag and drop item * src/Marriage.py: add srcref as a drag and drop item

View File

@ -1242,7 +1242,7 @@ class Gramps:
person = RelLib.Person() person = RelLib.Person()
try: try:
EditPerson.EditPerson(self, person, self.db, EditPerson.EditPerson(self, person, self.db,
self.update_after_edit) self.new_after_edit)
except: except:
DisplayTrace.DisplayTrace() DisplayTrace.DisplayTrace()
@ -1514,7 +1514,17 @@ class Gramps:
self.filter_text.set_sensitive(0) self.filter_text.set_sensitive(0)
def new_after_edit(self,epo,val): def new_after_edit(self,epo,val):
self.update_after_edit(epo,val) self.active_person = epo.person
pn = self.active_person.get_primary_name()
mapname = self.db.get_name_group_mapping(pn.get_group_name())
self.people_view.build_tree()
self.family_view.load_family()
self.place_view.build_tree()
self.source_view.build_tree()
self.update_display(0)
self.goto_active_person()
def update_after_newchild(self,family,person,plist): def update_after_newchild(self,family,person,plist):
self.family_view.load_family(family) self.family_view.load_family(family)
@ -1528,7 +1538,7 @@ class Gramps:
mapname = self.db.get_name_group_mapping(pn.get_group_name()) mapname = self.db.get_name_group_mapping(pn.get_group_name())
if epo.orig_surname != pn.get_group_name() or epo.orig_surname != mapname: if epo.orig_surname in [pn.get_group_name(), mapname ]:
self.people_view.build_tree() self.people_view.build_tree()
elif change: elif change:
self.people_view.update_person_list(epo.person) self.people_view.update_person_list(epo.person)