aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-component.c
diff options
context:
space:
mode:
authorNot Zed <NotZed@Ximian.com>2005-02-25 11:38:04 +0800
committerMichael Zucci <zucchi@src.gnome.org>2005-02-25 11:38:04 +0800
commit762d734b9a92e245c2b03d8681d4e171732242be (patch)
treeab84cdb74540fc8e5e63b9305b55c66628c11897 /mail/mail-component.c
parent918965c00acef9bfb5a78d57b7dad8f67a2f5269 (diff)
downloadgsoc2013-evolution-762d734b9a92e245c2b03d8681d4e171732242be.tar.gz
gsoc2013-evolution-762d734b9a92e245c2b03d8681d4e171732242be.tar.zst
gsoc2013-evolution-762d734b9a92e245c2b03d8681d4e171732242be.zip
** See bug #34153 and no doubt duplicates
2005-02-21 Not Zed <NotZed@Ximian.com> ** See bug #34153 and no doubt duplicates * mail-component.c (impl_requestQuit): use the VISIBLE count not the TOTAL count to check if there are unsent emails. svn path=/trunk/; revision=28883
Diffstat (limited to 'mail/mail-component.c')
-rw-r--r--mail/mail-component.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-component.c b/mail/mail-component.c
index f22e88210c..bd322ebf18 100644
--- a/mail/mail-component.c
+++ b/mail/mail-component.c
@@ -636,14 +636,16 @@ impl_requestQuit(PortableServer_Servant servant, CORBA_Environment *ev)
{
/*MailComponent *mc = MAIL_COMPONENT(bonobo_object_from_servant(servant));*/
CamelFolder *folder;
+ guint32 unsent;
if (!e_msg_composer_request_close_all())
return FALSE;
folder = mc_default_folders[MAIL_COMPONENT_FOLDER_OUTBOX].folder;
if (folder != NULL
- && camel_folder_get_message_count(folder) != 0
&& camel_session_is_online(session)
+ && camel_object_get(folder, NULL, CAMEL_FOLDER_VISIBLE, &unsent, 0) == 0
+ && unsent > 0
&& e_error_run(NULL, "mail:exit-unsaved", NULL) != GTK_RESPONSE_YES)
return FALSE;