diff options
author | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-24 04:44:23 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2001-10-24 04:44:23 +0800 |
commit | c1c8b61ad7d9f3324b28e9704b07d698f1a948ed (patch) | |
tree | 8f73892003e30a6586a009c8954a37409430417a /mail/mail-callbacks.c | |
parent | a0974e678aefa0e9ce39ecb03f563739d32005c2 (diff) | |
download | gsoc2013-evolution-c1c8b61ad7d9f3324b28e9704b07d698f1a948ed.tar.gz gsoc2013-evolution-c1c8b61ad7d9f3324b28e9704b07d698f1a948ed.tar.zst gsoc2013-evolution-c1c8b61ad7d9f3324b28e9704b07d698f1a948ed.zip |
fixed a logic mistake from my last commit
svn path=/trunk/; revision=13953
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index 4d9d856c8d..96fb7c6bca 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -173,12 +173,9 @@ check_send_configuration (FolderBrowser *fb) { const MailConfigAccount *account; - if (FOLDER_BROWSER_IS_DESTROYED (fb)) - return FALSE; - /* Check general */ - if (!mail_config_is_configured () || !configure_mail (fb)) - return FALSE; + if (!mail_config_is_configured () && !configure_mail (fb)) + return FALSE; /* Get the default account */ account = mail_config_get_default_account (); @@ -224,8 +221,8 @@ send_receive_mail (GtkWidget *widget, gpointer user_data) if (FOLDER_BROWSER_IS_DESTROYED (fb)) return; - if (!mail_config_is_configured () || !configure_mail (fb)) - return; + if (!mail_config_is_configured () && !configure_mail (fb)) + return; account = mail_config_get_default_account (); if (!account || !account->transport) { @@ -2478,7 +2475,7 @@ empty_trash (BonoboUIComponent *uih, void *user_data, const char *path) fb = user_data ? FOLDER_BROWSER (user_data) : NULL; - if (FOLDER_BROWSER_IS_DESTROYED (fb) || !confirm_expunge (fb)) + if (fb && !confirm_expunge (fb)) return; camel_exception_init (&ex); |