diff options
-rw-r--r-- | widgets/table/e-tree-table-adapter.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |