aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
Diffstat (limited to 'mail')
-rw-r--r--mail/e-mail-backend.c3
-rw-r--r--mail/mail-session.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 64880ff98f..30b691ef5c 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -29,6 +29,8 @@
#include "e-util/e-account-utils.h"
#include "e-util/e-alert-dialog.h"
+#include "misc/e-account-combo-box.h"
+
#include "shell/e-shell.h"
#include "mail/e-mail-local.h"
@@ -385,6 +387,7 @@ mail_backend_constructed (GObject *object)
/* This also initializes Camel, so it needs to happen early. */
mail_session_init (shell_backend);
+ e_account_combo_box_set_session (session); /* XXX Don't ask... */
folder_cache = mail_folder_cache_get_default ();
diff --git a/mail/mail-session.c b/mail/mail-session.c
index 2131275216..dc7e40d79a 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -49,7 +49,6 @@
#include "e-util/e-util.h"
#include "e-util/e-alert-dialog.h"
#include "e-util/e-util-private.h"
-#include "misc/e-account-combo-box.h"
#include "shell/e-shell.h"
#include "em-composer-utils.h"
@@ -812,7 +811,6 @@ mail_session_init (EShellBackend *shell_backend)
camel_provider_init();
session = CAMEL_SESSION (camel_object_new (MAIL_SESSION_TYPE));
- e_account_combo_box_set_session (session); /* XXX Don't ask... */
e_account_writable(NULL, E_ACCOUNT_SOURCE_SAVE_PASSWD); /* Init the EAccount Setup */
mail_data_dir = g_build_filename (e_get_user_data_dir (), "mail", NULL);