aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-11 20:19:51 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-09-14 20:08:48 +0800
commitdf8108a6a71afb5404977aa18ed963b158a3ab77 (patch)
treee0ad2ad36b477586a4104c63c29736ee3bd97c66
parent5a11011d235f01a17b9e47ab60bc07ed754caf20 (diff)
downloadgsoc2013-evolution-df8108a6a71afb5404977aa18ed963b158a3ab77.tar.gz
gsoc2013-evolution-df8108a6a71afb5404977aa18ed963b158a3ab77.tar.zst
gsoc2013-evolution-df8108a6a71afb5404977aa18ed963b158a3ab77.zip
Bug #656133 - Mail-local not initialized when adding/editing account
-rw-r--r--modules/mail/em-account-prefs.c4
1 files changed, 4 insertions, 0 deletions
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,