diff options
-rw-r--r-- | mail/ChangeLog | 5 | ||||
-rw-r--r-- | mail/component-factory.c | 2 |
2 files changed, 6 insertions, 1 deletions
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 <peterw@ximian.com> + + * 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 <fejj@ximian.com> * 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?"), |