mirror of
https://github.com/JockeTF/fimfareader.git
synced 2024-11-27 07:28:00 +01:00
Clear view model during store detach
This commit is contained in:
parent
9db565d540
commit
9dc01943e1
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ impl StoryView {
|
|||
}
|
||||
|
||||
pub fn detach(mut self) -> TreeView {
|
||||
self.view.set_model(None::<&ListStore>);
|
||||
replace(&mut self.view, TreeView::new())
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue