aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorMike Kestner <mkestner@ximian.com>2003-03-24 23:34:33 +0800
committerMike Kestner <mkestner@src.gnome.org>2003-03-24 23:34:33 +0800
commit6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169 (patch)
tree34836604cb9d3655c3dbc919fa3c01a87a2558cb /widgets
parent1f7db78c2597eb6f6d2b8a6c8d8542449df60271 (diff)
downloadgsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar.gz
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar.bz2
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar.lz
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar.xz
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.tar.zst
gsoc2013-evolution-6ebc3ad9d9f4c369ef0a7095acf5a170f19f0169.zip
don't call delete_node on the root node since generate_tree already does
2003-03-24 Mike Kestner <mkestner@ximian.com> * 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 <antonio.xu@sun.com> for identifying the cause of the bug and providing a candidate patch. Bug #38320. svn path=/trunk/; revision=20481
Diffstat (limited to 'widgets')
-rw-r--r--widgets/table/e-tree-table-adapter.c5
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);