aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-17 02:19:16 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-17 02:24:05 +0800
commitf007c8927f505c416bc39558cd0467052bcb5952 (patch)
treed8b827f901045ccfa4c1402fc5c336b21f032a90
parent036ba497a3804e53c59773a46e32f836295f67df (diff)
downloadgsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar.gz
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar.bz2
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar.lz
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar.xz
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.tar.zst
gsoc2013-evolution-f007c8927f505c416bc39558cd0467052bcb5952.zip
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. (cherry picked from commit 766c0b0b55a0f12c03d82deac2b2633630eff27e)
-rw-r--r--modules/mail/e-mail-shell-backend.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index af4af565f7..59a91a7454 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -417,6 +417,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;