Clear view model during store detach

This commit is contained in:
Joakim Soderlund 2019-10-09 19:08:37 +02:00
parent 9db565d540
commit 9dc01943e1

View file

@ -80,6 +80,7 @@ impl StoryView {
} }
pub fn detach(mut self) -> TreeView { pub fn detach(mut self) -> TreeView {
self.view.set_model(None::<&ListStore>);
replace(&mut self.view, TreeView::new()) replace(&mut self.view, TreeView::new())
} }