Don't display "(0 unsent)" if the outbox is empty.
2001-07-24 Peter Williams <peterw@ximian.com> * mail-folder-cache.c (make_folder_name): Don't display "(0 unsent)" if the outbox is empty. svn path=/trunk/; revision=11347
This commit is contained in:
committed by
Peter Williams
parent
0a9ba272a2
commit
488f755ce8
@ -1,5 +1,8 @@
|
||||
2001-07-24 Peter Williams <peterw@ximian.com>
|
||||
|
||||
* mail-folder-cache.c (make_folder_name): Don't display "(0 unsent)" if
|
||||
the outbox is empty.
|
||||
|
||||
* mail-local.c (init_trash): Set up the local trash in the folder cache.
|
||||
|
||||
* mail-folder-cache.c (update_idle): Make the error reporting a little
|
||||
|
||||
@ -142,8 +142,8 @@ make_folder_name (mail_folder_info *mfi)
|
||||
/* the way the logic is now, an outbox folder simply doesn't have
|
||||
* its unread count displayed. Makes sense to me at the moment. */
|
||||
|
||||
if (mfi->flags & MAIL_FIF_FOLDER_VALID && mfi->folder == outbox_folder) {
|
||||
if (mfi->flags & MAIL_FIF_TOTAL_VALID)
|
||||
if (mfi->flags & MAIL_FIF_FOLDER_VALID && mfi->folder == outbox_folder &&
|
||||
mfi->flags & MAIL_FIF_TOTAL_VALID && mfi->total) {
|
||||
g_string_sprintfa (work, " (%d unsent)", mfi->total);
|
||||
} else if (mfi->flags & MAIL_FIF_UNREAD_VALID && mfi->unread)
|
||||
g_string_sprintfa (work, " (%d)", mfi->unread);
|
||||
|
||||
Reference in New Issue
Block a user