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 | |
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')
-rw-r--r-- | mail/folder-browser.h | 2 | ||||
-rw-r--r-- | mail/mail-callbacks.c | 13 |
2 files changed, 6 insertions, 9 deletions
diff --git a/mail/folder-browser.h b/mail/folder-browser.h index 7a92ebf3ae..f290587498 100644 --- a/mail/folder-browser.h +++ b/mail/folder-browser.h @@ -25,7 +25,7 @@ #define FB_DEFAULT_CHARSET _("Default") -#define FOLDER_BROWSER_IS_DESTROYED(fb) (!fb || !fb->folder || !fb->message_list || !fb->mail_display) +#define FOLDER_BROWSER_IS_DESTROYED(fb) (!fb || !fb->message_list || !fb->mail_display) typedef enum _FolderBrowserSelectionState { FB_SELSTATE_NONE, 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); |