From 1042bb3fe28828ef1c556a9be64d08832c92ae9b Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Wed, 24 Jun 2009 20:26:18 +0000 Subject: [PATCH] Bug 3069: PersonView keeps tree model attached while rebuilding the columns svn: r12703 --- src/DataViews/PersonView.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/DataViews/PersonView.py b/src/DataViews/PersonView.py index d629d6bec..ea6116488 100644 --- a/src/DataViews/PersonView.py +++ b/src/DataViews/PersonView.py @@ -532,8 +532,9 @@ class PersonView(PageView.PersonNavView): self.tooltips = TreeTips.TreeTips(self.tree, self.model.tooltip_column, True) - + self.tree.set_model(None) self.build_columns() + self.tree.set_model(self.model) self.dbstate.change_active_person(active) self._goto() self.dirty = False @@ -758,7 +759,7 @@ class PersonView(PageView.PersonNavView): def person_updated(self, handle_list): if not self.model: return - + self.model.clear_cache() for node in handle_list: person = self.dbstate.db.get_person_from_handle(node)