From 26ccc3eed18996fc1e87bae8e3702c1929003877 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Fri, 16 Apr 2004 18:34:55 +0000 Subject: will never be true. Fixes bug #56982. 2004-04-16 Jeffrey Stedfast * camel-vee-store.c (change_folder): (flags & 0) will never be true. Fixes bug #56982. svn path=/trunk/; revision=25495 --- camel/ChangeLog | 5 +++++ camel/camel-vee-store.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'camel') diff --git a/camel/ChangeLog b/camel/ChangeLog index 7710d6f6c3..09532b6512 100644 --- a/camel/ChangeLog +++ b/camel/ChangeLog @@ -1,3 +1,8 @@ +2004-04-16 Jeffrey Stedfast + + * camel-vee-store.c (change_folder): (flags & 0) will never be + true. Fixes bug #56982. + 2004-04-15 Jeffrey Stedfast * providers/imap/camel-imap-utils.c: Changed imap_atom_specials[] diff --git a/camel/camel-vee-store.c b/camel/camel-vee-store.c index c630eb6851..c25f252af4 100644 --- a/camel/camel-vee-store.c +++ b/camel/camel-vee-store.c @@ -147,7 +147,7 @@ change_folder(CamelStore *store, const char *name, guint32 flags, int count) /*fi->url = g_strdup_printf("vfolder:%s%s#%s", ((CamelService *)store)->url->path, (flags&CHANGE_NOSELECT)?";noselect=yes":"", name);*/ fi->unread = count; fi->flags = CAMEL_FOLDER_VIRTUAL; - if (flags & CHANGE_ADD) + if (!(flags & CHANGE_DELETE)) fi->flags |= CAMEL_FOLDER_NOCHILDREN; camel_folder_info_build_path(fi, '/'); camel_object_trigger_event(store, (flags&CHANGE_DELETE)?"folder_deleted":"folder_created", fi); -- cgit