From f7a5a0a2618b4e38777c9ce54d35c72193364064 Mon Sep 17 00:00:00 2001 From: Peter Williams Date: Wed, 7 Aug 2002 17:27:15 +0000 Subject: If outbox_folder is NULL, don't try and get its message count (this should 2002-08-07 Peter Williams * component-factory.c (request_quit): If outbox_folder is NULL, don't try and get its message count (this should never happen, but has.) svn path=/trunk/; revision=17731 --- mail/ChangeLog | 5 +++++ mail/component-factory.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index 192b50c671..9cbdad490a 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,8 @@ +2002-08-07 Peter Williams + + * component-factory.c (request_quit): If outbox_folder is NULL, don't + try and get its message count (this should never happen, but has.) + 2002-08-06 Jeffrey Stedfast * mail-local.c (save_metainfo): No need to save a temporary file diff --git a/mail/component-factory.c b/mail/component-factory.c index e9b3c8482b..c27a26d048 100644 --- a/mail/component-factory.c +++ b/mail/component-factory.c @@ -944,7 +944,7 @@ request_quit (EvolutionShellComponent *shell_component, if (!e_msg_composer_request_close_all ()) return FALSE; - if (!camel_folder_get_message_count (outbox_folder)) + if (!outbox_folder || !camel_folder_get_message_count (outbox_folder)) return TRUE; dialog = gnome_message_box_new (_("You have unsent messages, do you wish to quit anyway?"), -- cgit v1.2.3