diff options
author | Rodney Dawes <dobey@ximian.com> | 2004-02-24 23:48:59 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-02-24 23:48:59 +0800 |
commit | 377deb017693a02fea68b7555ccd1e2ccda01610 (patch) | |
tree | e974763e913bc9287a397f7a47055f1ac13270f0 | |
parent | 7643637e5b023637c63a975def9bfbbfbed2b3c9 (diff) | |
download | gsoc2013-evolution-377deb017693a02fea68b7555ccd1e2ccda01610.tar.gz gsoc2013-evolution-377deb017693a02fea68b7555ccd1e2ccda01610.tar.zst gsoc2013-evolution-377deb017693a02fea68b7555ccd1e2ccda01610.zip |
If our folder has a subdir, but no actual children, then we need to unset
2004-02-23 Rodney Dawes <dobey@ximian.com>
* 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
-rw-r--r-- | camel/ChangeLog | 8 | ||||
-rw-r--r-- | camel/providers/local/camel-mbox-store.c | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog index 1374d19176..3197349085 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,11 @@ +2004-02-23 Rodney Dawes <dobey@ximian.com> + + * 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 + 2004-02-23 Jeffrey Stedfast <fejj@ximian.com> * camel-store.c (camel_store_uri_cmp): Removed. Useless/broken 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; } } |