diff options
author | Dan Winship <danw@src.gnome.org> | 2000-11-29 02:04:16 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2000-11-29 02:04:16 +0800 |
commit | dfc6c01cf945c1d3b12a16f151a693d778892b7f (patch) | |
tree | 114eab5dcede2bb80b910e0d548500366b80df27 /mail/mail-local.c | |
parent | 3e0f8b57e459e7dbad54d6a3a6b256c347c033d9 (diff) | |
download | gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.gz gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.tar.zst gsoc2013-evolution-dfc6c01cf945c1d3b12a16f151a693d778892b7f.zip |
Fix the initial unread counts after the last patch.
* mail-local.c (cleanup_register_folder): Fix the initial unread
counts after the last patch.
svn path=/trunk/; revision=6697
Diffstat (limited to 'mail/mail-local.c')
-rw-r--r-- | mail/mail-local.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mail/mail-local.c b/mail/mail-local.c index 666cfefbbd..cc34a61a7d 100644 --- a/mail/mail-local.c +++ b/mail/mail-local.c @@ -707,6 +707,7 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, CamelException *ex) { MailLocalFolder *local_folder = in_data; + int unread; if (!local_folder->folder) { g_free (local_folder); @@ -720,8 +721,10 @@ cleanup_register_folder (gpointer in_data, gpointer op_data, camel_object_hook_event (CAMEL_OBJECT (local_folder->folder), "folder_changed", local_folder_changed_proxy, local_folder); + unread = local_folder->last_unread; + local_folder->last_unread = 0; local_folder_changed (CAMEL_OBJECT (local_folder->folder), - NULL, local_folder); + GINT_TO_POINTER (unread), local_folder); } static const mail_operation_spec op_register_folder = |