diff options
author | Not Zed <NotZed@Ximian.com> | 2005-02-25 11:38:04 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2005-02-25 11:38:04 +0800 |
commit | 762d734b9a92e245c2b03d8681d4e171732242be (patch) | |
tree | ab84cdb74540fc8e5e63b9305b55c66628c11897 | |
parent | 918965c00acef9bfb5a78d57b7dad8f67a2f5269 (diff) | |
download | gsoc2013-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
-rw-r--r-- | mail/ChangeLog | 7 | ||||
-rw-r--r-- | mail/mail-component.c | 4 |
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog index 7ea7024651..1b961d0c82 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -7,6 +7,13 @@ 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. + +2005-02-21 Not Zed <NotZed@Ximian.com> + ** See bug #71528. * em-migrate.c (remove_system_searches, em_migrate_1_4): remove 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; |