* src/DisplayModels/_PeopleModel.py: save current filter for rebuild (#838)

svn: r7946
This commit is contained in:
Don Allingham 2007-01-21 05:17:06 +00:00
parent 013e1e7757
commit e11d71e273
3 changed files with 7 additions and 3 deletions

View File

@ -1,4 +1,5 @@
2007-01-20 Don Allingham <don@gramps-project.org>
* src/DisplayModels/_PeopleModel.py: save current filter for rebuild (#838)
* src/BaseDoc.py: save/load paragraph description (#850)
* src/QuestionDialog.py: close window before calling callback
* src/DataViews/_PersonView.py (PersonView.change_db): apply

View File

@ -742,7 +742,8 @@ class PersonView(PageView.PersonNavView):
pname = person.get_primary_name()
top = NameDisplay.displayer.name_grouping_name(self.db, pname)
self.model.rebuild_data()
self.model.rebuild_data(self.model.current_filter)
if not self.model.is_visable(node):
continue

View File

@ -183,6 +183,7 @@ class PeopleModel(gtk.GenericTreeModel):
else:
self._build_data = self._build_search_sub
data_filter = None
self.current_filter = data_filter
self.rebuild_data(data_filter, skip)
def update_todo(self,client,cnxn_id,entry,data):
@ -200,6 +201,7 @@ class PeopleModel(gtk.GenericTreeModel):
"""
self.calculate_data(data_filter, skip)
self.assign_data()
self.current_filter = data_filter
def _build_search_sub(self,dfilter, skip):
self.sortnames = {}