aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-storage-set-view.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-storage-set-view.c')
-rw-r--r--shell/e-storage-set-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 3ebeb14f06..82e08d2ed3 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1555,7 +1555,8 @@ etree_node_destroy_func (void *data,
path = (char *) data;
storage_set_view = E_STORAGE_SET_VIEW (user_data);
- remove_node_from_hash (storage_set_view, path);
+ if (strcmp (path, ROOT_NODE_NAME))
+ remove_node_from_hash (storage_set_view, path);
g_free (path);
}
@@ -1602,7 +1603,7 @@ removed_storage_cb (EStorageSet *storage_set,
etree = priv->etree_model;
path = g_strconcat (G_DIR_SEPARATOR_S, e_storage_get_name (storage), NULL);
- node = remove_node_from_hash (storage_set_view, path);
+ node = lookup_node_in_hash (storage_set_view, path);
g_free (path);
e_tree_memory_node_remove (E_TREE_MEMORY(etree), node);
@@ -1683,7 +1684,7 @@ removed_folder_cb (EStorageSet *storage_set,
priv = storage_set_view->priv;
etree = priv->etree_model;
- node = remove_node_from_hash (storage_set_view, path);
+ node = lookup_node_in_hash (storage_set_view, path);
e_tree_memory_node_remove (E_TREE_MEMORY(etree), node);
}