diff options
author | Peter Williams <peterw@ximian.com> | 2001-08-31 00:06:51 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2001-08-31 00:06:51 +0800 |
commit | 0f1d708cc00fd0b31f9515685f66a6626dce944e (patch) | |
tree | 7520f1ee5ada566d47b7fa91ffca9323c2462da3 | |
parent | 1d647939ec181acbf9376eea3b936c3f06db55ab (diff) | |
download | gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar.gz gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar.bz2 gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar.lz gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar.xz gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.tar.zst gsoc2013-evolution-0f1d708cc00fd0b31f9515685f66a6626dce944e.zip |
Instead of removing the folder from the folder cache here...
2001-08-30 Peter Williams <peterw@ximian.com>
* mail-ops.c (remove_folder_get): Instead of removing the folder
from the folder cache here...
(remove_folder_got): ... do it here, in the main thread.
svn path=/trunk/; revision=12529
-rw-r--r-- | mail/ChangeLog | 6 | ||||
-rw-r--r-- | mail/mail-ops.c | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 1de699c939..c723338931 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,9 @@ +2001-08-30 Peter Williams <peterw@ximian.com> + + * mail-ops.c (remove_folder_get): Instead of removing the folder + from the folder cache here... + (remove_folder_got): ... do it here, in the main thread. + 2001-08-29 Jon Trowbridge <trow@ximian.com> * mail-callbacks.c (composer_get_message): When calling diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 3ec54474eb..eeaf6d8b0b 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -1501,16 +1501,18 @@ remove_folder_get (struct _mail_msg *mm) g_free (full_name); m->removed = !camel_exception_is_set (&mm->ex); camel_object_unref (CAMEL_OBJECT (store)); - - /* Remove this folder from the folder cache */ - mail_folder_cache_remove_folder (m->uri); } static void remove_folder_got (struct _mail_msg *mm) { struct _remove_folder_msg *m = (struct _remove_folder_msg *)mm; - + + if (m->removed) { + /* Remove this folder from the folder cache */ + mail_folder_cache_remove_folder (m->uri); + } + if (m->done) m->done (m->uri, m->removed, m->data); } |