From 377deb017693a02fea68b7555ccd1e2ccda01610 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Tue, 24 Feb 2004 15:48:59 +0000 Subject: If our folder has a subdir, but no actual children, then we need to unset 2004-02-23 Rodney Dawes * providers/local/camel-mbox-store.c (scan_dir): If our folder has a subdir, but no actual children, then we need to unset the flag for CAMEL_FOLDER_CHILDREN Fixes #54470 svn path=/trunk/; revision=24845 --- camel/providers/local/camel-mbox-store.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'camel/providers') 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; } } -- cgit v1.2.3