aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2001-07-25 02:29:23 +0800
committerPeter Williams <peterw@src.gnome.org>2001-07-25 02:29:23 +0800
commit488f755ce87e435a79a7da3fb31f83da3945935e (patch)
treecadfc98955efda02e7c1eb74efb5156a85ed70f2
parent0a9ba272a22ed1a8d4521321a7f8fc95042e6253 (diff)
downloadgsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar.gz
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar.bz2
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar.lz
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar.xz
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.tar.zst
gsoc2013-evolution-488f755ce87e435a79a7da3fb31f83da3945935e.zip
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
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/mail-folder-cache.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1aaa80d696..9b12997db6 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -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
diff --git a/mail/mail-folder-cache.c b/mail/mail-folder-cache.c
index d31441dabe..5c002af9d5 100644
--- a/mail/mail-folder-cache.c
+++ b/mail/mail-folder-cache.c
@@ -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);