aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/local/camel-mbox-store.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/local/camel-mbox-store.c')
-rw-r--r--camel/providers/local/camel-mbox-store.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/camel/providers/local/camel-mbox-store.c b/camel/providers/local/camel-mbox-store.c
index fa7a0af527..94b2e6fbeb 100644
--- a/camel/providers/local/camel-mbox-store.c
+++ b/camel/providers/local/camel-mbox-store.c
@@ -736,6 +736,8 @@ scan_dir(CamelStore *store, GHashTable *visited, CamelFolderInfo *parent, const
if ((fi->child = scan_dir(store, visited, fi, path, fi->full_name, flags, ex)))
fi->flags |= CAMEL_FOLDER_CHILDREN;
+ else
+ fi->flags =(fi->flags & ~CAMEL_FOLDER_CHILDREN) | CAMEL_FOLDER_NOCHILDREN;
}
}