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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/e-storage-set-view.c b/shell/e-storage-set-view.c
index 9b7365e796..5c57608db9 100644
--- a/shell/e-storage-set-view.c
+++ b/shell/e-storage-set-view.c
@@ -1356,8 +1356,14 @@ etree_icon_at (ETreeModel *etree,
if (depth == 1) {
EStorage *storage;
const char *storage_type;
+ GList *subfolder_paths;
storage = e_storage_set_get_storage (storage_set, path + 1);
+ subfolder_paths = e_storage_get_subfolder_paths (storage, "/");
+ if (subfolder_paths != NULL) {
+ e_free_string_list (subfolder_paths);
+ return NULL;
+ }
folder_type_registry = e_storage_set_get_folder_type_registry (storage_set);
storage_type = e_storage_get_toplevel_node_type (storage);