diff options
Diffstat (limited to 'mail/e-mail-session.c')
-rw-r--r-- | mail/e-mail-session.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/mail/e-mail-session.c b/mail/e-mail-session.c index 333ee74477..d716357288 100644 --- a/mail/e-mail-session.c +++ b/mail/e-mail-session.c @@ -398,10 +398,17 @@ static guint preparing_flush = 0; static gboolean forward_to_flush_outbox_cb (EMailSession *session) { + EShell *shell; + EShellBackend *shell_backend; + g_return_val_if_fail (preparing_flush != 0, FALSE); + shell = e_shell_get_default (); + shell_backend = e_shell_get_backend_by_name (shell, "mail"); + g_return_val_if_fail (E_IS_MAIL_BACKEND (shell_backend), FALSE); + preparing_flush = 0; - mail_send (session); + mail_send (E_MAIL_BACKEND (shell_backend)); return FALSE; } @@ -458,8 +465,8 @@ set_socks_proxy_from_gsettings (CamelSession *session) static void proxy_gsettings_changed_cb (GSettings *settings, - const gchar *key, - CamelSession *session) + const gchar *key, + CamelSession *session) { set_socks_proxy_from_gsettings (session); } |