diff options
author | Peter Williams <peterw@ximian.com> | 2002-08-08 01:27:15 +0800 |
---|---|---|
committer | Peter Williams <peterw@src.gnome.org> | 2002-08-08 01:27:15 +0800 |
commit | f7a5a0a2618b4e38777c9ce54d35c72193364064 (patch) | |
tree | cdae129869418158696b101bb0a265ac132d00f7 /mail | |
parent | 043ad65cc2edf25f2a21c7ea924769d21378e94b (diff) | |
download | gsoc2013-evolution-f7a5a0a2618b4e38777c9ce54d35c72193364064.tar.gz gsoc2013-evolution-f7a5a0a2618b4e38777c9ce54d35c72193364064.tar.zst gsoc2013-evolution-f7a5a0a2618b4e38777c9ce54d35c72193364064.zip |
If outbox_folder is NULL, don't try and get its message count (this should
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.)
svn path=/trunk/; revision=17731
Diffstat (limited to 'mail')
-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?"), |