aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-send-recv.c
diff options
context:
space:
mode:
authorLucian Langa <lucilanga@gnome.org>2008-12-15 14:05:10 +0800
committerLucian Langa <lucilanga@src.gnome.org>2008-12-15 14:05:10 +0800
commit200ff2ee9785a4d887a814003a6056008dff8101 (patch)
treeaed1f9fa72f122f26416d0bbd045fe655157adca /mail/mail-send-recv.c
parent04531b1c0f924fc78e2754f539889070818343fb (diff)
downloadgsoc2013-evolution-200ff2ee9785a4d887a814003a6056008dff8101.tar.gz
gsoc2013-evolution-200ff2ee9785a4d887a814003a6056008dff8101.tar.zst
gsoc2013-evolution-200ff2ee9785a4d887a814003a6056008dff8101.zip
** Fixes bug #564519
2008-12-15 Lucian Langa <lucilanga@gnome.org> ** Fixes bug #564519 * mail-send-recv.c: (build_dialog): Count also deleted unsent messages when displaying SMTP server svn path=/trunk/; revision=36879
Diffstat (limited to 'mail/mail-send-recv.c')
-rw-r--r--mail/mail-send-recv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/mail-send-recv.c b/mail/mail-send-recv.c
index d2447d76b7..d957a7d216 100644
--- a/mail/mail-send-recv.c
+++ b/mail/mail-send-recv.c
@@ -416,7 +416,8 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
g_object_unref (iter);
/* Check to see if we have to send any mails --- if we don't, don't display the SMTP row in the table */
- if (outbox && destination && camel_folder_get_message_count (outbox) == 0)
+ if (outbox && destination
+ && (camel_folder_get_message_count(outbox) - camel_folder_get_deleted_message_count(outbox)) == 0)
num_sources--;
table = gtk_table_new (num_sources, 4, FALSE);
@@ -544,7 +545,8 @@ build_dialog (EAccountList *accounts, CamelFolder *outbox, const char *destinati
e_event_emit ((EEvent *)em_event_peek (), "mail.sendreceive", (EEventTarget *) target);
/* Skip displaying the SMTP row if we've got no outbox, destination or unsent mails */
- if (outbox && destination && camel_folder_get_message_count (outbox) != 0) {
+ if (outbox && destination
+ && (camel_folder_get_message_count(outbox) - camel_folder_get_deleted_message_count(outbox)) != 0) {
info = g_hash_table_lookup (data->active, SEND_URI_KEY);
if (info == NULL) {
info = g_malloc0 (sizeof (*info));