* src/PeopleModel.py: Improve rebuid times by using database cursor,

caching sort names, and replacing loops with map/lamba
* src/PeopleView.py: prevent goto_active_person reentrancy, use get_selected_objects
instead of selected_foreach, combine row_changed and set_dnd_target into the same
callback, rebuild only affected surname on person-update if pissible


svn: r4750
This commit is contained in:
Don Allingham
2005-06-01 18:02:53 +00:00
parent 31650baf2c
commit 2e7ad59d01
5 changed files with 75 additions and 58 deletions

View File

@@ -1749,9 +1749,9 @@ class Gramps(GrampsDBCallback.GrampsDBCallback):
"Please upgrade to the corresponding version or use XML for porting data between different database versions.")
self.db.set_save_path(name)
res = self.db.get_researcher()
owner = GrampsCfg.get_researcher()
if res.get_name() == "" and owner.get_name():
self.db.set_researcher(owner)