From ae05d156fcb27bac282430eedffa18e2c797e5aa Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 16 May 2011 14:19:16 -0400 Subject: Bug 650088 - Cannot send message from Contacts view This starts up the EMailShellBackend whenever a new composer window is created. Normally this happens when switching to the Mail shell view, but if trying to send a message from a different shell view before the Mail shell view is ever activated, the mail accounts were not getting loaded and sending or saving the message to a mail folder would fail. --- modules/mail/e-mail-shell-backend.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/mail') diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c index 180e5b2a92..0c02a48a05 100644 --- a/modules/mail/e-mail-shell-backend.c +++ b/modules/mail/e-mail-shell-backend.c @@ -342,6 +342,11 @@ mail_shell_backend_window_created_cb (EShell *shell, } if (E_IS_MSG_COMPOSER (window)) { + /* Start the mail backend if it isn't already. This + * may be necessary when opening a new composer window + * from a shell view other than mail. */ + e_shell_backend_start (shell_backend); + /* Integrate the new composer into the mail module. */ em_configure_new_composer (E_MSG_COMPOSER (window)); return; -- cgit v1.2.3