From 9dc01943e1ab01284658f86b47ed345b6a296476 Mon Sep 17 00:00:00 2001 From: Joakim Soderlund Date: Wed, 9 Oct 2019 19:08:37 +0200 Subject: [PATCH] Clear view model during store detach --- gtk/src/components/app.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/gtk/src/components/app.rs b/gtk/src/components/app.rs index 2a510c0..4ae5271 100644 --- a/gtk/src/components/app.rs +++ b/gtk/src/components/app.rs @@ -80,6 +80,7 @@ impl StoryView { } pub fn detach(mut self) -> TreeView { + self.view.set_model(None::<&ListStore>); replace(&mut self.view, TreeView::new()) }