From 6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169 Mon Sep 17 00:00:00 2001 From: Mike Kestner Date: Mon, 24 Mar 2003 15:34:33 +0000 Subject: don't call delete_node on the root node since generate_tree already does 2003-03-24 Mike Kestner * e-tree-table-adapter.c (update_node): don't call delete_node on the root node since generate_tree already does that. Thanks to Antonio Xu for identifying the cause of the bug and providing a candidate patch. Bug #38320. svn path=/trunk/; revision=20481 --- widgets/table/e-tree-table-adapter.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'widgets/table') diff --git a/widgets/table/e-tree-table-adapter.c b/widgets/table/e-tree-table-adapter.c index 83bbd0b57f..d36ba15c99 100644 --- a/widgets/table/e-tree-table-adapter.c +++ b/widgets/table/e-tree-table-adapter.c @@ -447,11 +447,12 @@ update_node(ETreeTableAdapter *etta, ETreePath path) { ETreePath parent = e_tree_model_node_get_parent(etta->priv->source, path); gboolean expanded = e_tree_table_adapter_node_is_expanded (etta, path); - delete_node(etta, parent, path); if (e_tree_model_node_is_root(etta->priv->source, path)) generate_tree(etta, path); - else + else { + delete_node(etta, parent, path); insert_node(etta, parent, path); + } if (expanded != e_tree_model_get_expanded_default (etta->priv->source)) e_tree_table_adapter_node_set_expanded (etta, path, expanded); -- cgit