From 23b38d5c4573636f6c42e65e266d6aa238a9ea26 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 11 Aug 2011 14:19:51 +0200 Subject: Bug #656133 - Mail-local not initialized when adding/editing account --- modules/mail/em-account-prefs.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'modules/mail') diff --git a/modules/mail/em-account-prefs.c b/modules/mail/em-account-prefs.c index 1caf517363..9a89cae1ee 100644 --- a/modules/mail/em-account-prefs.c +++ b/modules/mail/em-account-prefs.c @@ -36,6 +36,7 @@ #include "e-util/e-account-utils.h" #include "e-mail-backend.h" +#include "e-mail-local.h" #include "e-mail-store.h" #include "em-config.h" #include "em-account-editor.h" @@ -393,6 +394,9 @@ em_account_prefs_new (EPreferencesWindow *window) shell = e_preferences_window_get_shell (window); shell_backend = e_shell_get_backend_by_name (shell, "mail"); + /* make sure the e-mail-local is initialized */ + e_mail_local_init (e_mail_backend_get_session (E_MAIL_BACKEND (shell_backend)), e_shell_backend_get_data_dir (shell_backend)); + return g_object_new ( EM_TYPE_ACCOUNT_PREFS, "account-list", account_list, -- cgit v1.2.3