* src/PeopleView.py (PeopleView.clear_person_tabs): initialize

the model2page map with the default list, instead of clearing it.

* src/gramps_main.py: update person table after edit (BUG 851637)


svn: r2432
This commit is contained in:
Don Allingham 2003-12-03 04:07:36 +00:00
parent c073775f97
commit c9e40098aa

View File

@ -119,12 +119,6 @@ class PeopleView:
self.ptabs.show()
self.clearing_tabs = 0
self.id2col = {}
self.tab_list = []
self.alpha_page = {}
self.model2page = {}
self.model_used = {}
self.default_list.clear()
for page in self.pl_page[0:-1]:
@ -138,6 +132,12 @@ class PeopleView:
self.person_list = self.pl_page[-1].tree
self.person_model = self.pl_page[-1].model
self.id2col = {}
self.tab_list = []
self.alpha_page = {}
self.model2page = {self.default_list : 0}
self.model_used = {}
def change_db(self,db):
self.id2col = {}