From 3e05c184063d7ed97a3a63f19de151fb5bb8396f Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Tue, 4 Sep 2001 19:54:48 +0000 Subject: Add the root node to the hash. (e_storage_set_view_set_show_folders): * e-storage-set-view.c (e_storage_set_view_construct): Add the root node to the hash. (e_storage_set_view_set_show_folders): Likewise. svn path=/trunk/; revision=12594 --- shell/ChangeLog | 9 +++++++++ shell/e-storage-set-view.c | 2 ++ 2 files changed, 11 insertions(+) (limited to 'shell') diff --git a/shell/ChangeLog b/shell/ChangeLog index f01a848c2c..0bd2fc98c0 100644 --- a/shell/ChangeLog +++ b/shell/ChangeLog @@ -1,3 +1,12 @@ +2001-09-04 Ettore Perazzoli + + [Patch from Richard Boulton to fix #8497, + "Warning when shutting view: RootNode not found".] + + * e-storage-set-view.c (e_storage_set_view_construct): Add the + root node to the hash. + (e_storage_set_view_set_show_folders): Likewise. + 2001-08-30 Peter Williams * e-local-storage.c (async_xfer_folder_complete): Remove the folder from diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c index 82e08d2ed3..67d46a8fef 100644 --- a/shell/e-storage-set-view.c +++ b/shell/e-storage-set-view.c @@ -1959,6 +1959,7 @@ e_storage_set_view_construct (EStorageSetView *storage_set_view, priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1, g_strdup (ROOT_NODE_NAME)); + add_node_to_hash (storage_set_view, ROOT_NODE_NAME, priv->root_node); extras = e_table_extras_new (); cell = e_cell_text_new (NULL, GTK_JUSTIFY_LEFT); @@ -2084,6 +2085,7 @@ e_storage_set_view_set_show_folders (EStorageSetView *storage_set_view, /* now re-add the root node */ priv->root_node = e_tree_memory_node_insert (E_TREE_MEMORY(priv->etree_model), NULL, -1, g_strdup (ROOT_NODE_NAME)); + add_node_to_hash (storage_set_view, ROOT_NODE_NAME, priv->root_node); /* then reinsert the storages after setting the "show_folders" flag. insert_storages will call insert_folders if -- cgit