From c9e40098aa3c6dde32e181cb8a4c21700941e0cb Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Wed, 3 Dec 2003 04:07:36 +0000 Subject: [PATCH] * 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 --- gramps2/src/PeopleView.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/gramps2/src/PeopleView.py b/gramps2/src/PeopleView.py index 9802ccef2..065646df9 100644 --- a/gramps2/src/PeopleView.py +++ b/gramps2/src/PeopleView.py @@ -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]: @@ -137,7 +131,13 @@ class PeopleView: self.person_tree = self.pl_page[-1] 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 = {}