[gnome-builder] tree: clear tree store when replacing root node



commit a5bbcf5783eaea438822625dfdd126818ea1d6f2
Author: Christian Hergert <christian hergert me>
Date:   Wed Jun 17 00:04:51 2015 -0700

    tree: clear tree store when replacing root node

 src/tree/gb-tree.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/tree/gb-tree.c b/src/tree/gb-tree.c
index c66ceed..54ad72a 100644
--- a/src/tree/gb-tree.c
+++ b/src/tree/gb-tree.c
@@ -1275,6 +1275,7 @@ gb_tree_set_root (GbTree     *self,
         {
           _gb_tree_node_set_parent (priv->root, NULL);
           _gb_tree_node_set_tree (priv->root, NULL);
+          gtk_tree_store_clear (priv->store);
           g_clear_object (&priv->root);
         }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]