Bug 3069: PersonView keeps tree model attached while rebuilding the columns
svn: r12703
This commit is contained in:
parent
22ecedb061
commit
1042bb3fe2
@ -532,8 +532,9 @@ class PersonView(PageView.PersonNavView):
|
|||||||
self.tooltips = TreeTips.TreeTips(self.tree,
|
self.tooltips = TreeTips.TreeTips(self.tree,
|
||||||
self.model.tooltip_column,
|
self.model.tooltip_column,
|
||||||
True)
|
True)
|
||||||
|
self.tree.set_model(None)
|
||||||
self.build_columns()
|
self.build_columns()
|
||||||
|
self.tree.set_model(self.model)
|
||||||
self.dbstate.change_active_person(active)
|
self.dbstate.change_active_person(active)
|
||||||
self._goto()
|
self._goto()
|
||||||
self.dirty = False
|
self.dirty = False
|
||||||
@ -758,7 +759,7 @@ class PersonView(PageView.PersonNavView):
|
|||||||
def person_updated(self, handle_list):
|
def person_updated(self, handle_list):
|
||||||
if not self.model:
|
if not self.model:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.model.clear_cache()
|
self.model.clear_cache()
|
||||||
for node in handle_list:
|
for node in handle_list:
|
||||||
person = self.dbstate.db.get_person_from_handle(node)
|
person = self.dbstate.db.get_person_from_handle(node)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user