* 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:
parent
7369021e86
commit
c466cf5f92
@ -119,12 +119,6 @@ class PeopleView:
|
|||||||
self.ptabs.show()
|
self.ptabs.show()
|
||||||
self.clearing_tabs = 0
|
self.clearing_tabs = 0
|
||||||
|
|
||||||
self.id2col = {}
|
|
||||||
self.tab_list = []
|
|
||||||
self.alpha_page = {}
|
|
||||||
self.model2page = {}
|
|
||||||
self.model_used = {}
|
|
||||||
|
|
||||||
self.default_list.clear()
|
self.default_list.clear()
|
||||||
|
|
||||||
for page in self.pl_page[0:-1]:
|
for page in self.pl_page[0:-1]:
|
||||||
@ -138,6 +132,12 @@ class PeopleView:
|
|||||||
self.person_list = self.pl_page[-1].tree
|
self.person_list = self.pl_page[-1].tree
|
||||||
self.person_model = self.pl_page[-1].model
|
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):
|
def change_db(self,db):
|
||||||
self.id2col = {}
|
self.id2col = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user