aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-08-11 20:19:51 +0800
committerMilan Crha <mcrha@redhat.com>2011-08-11 20:19:51 +0800
commit23b38d5c4573636f6c42e65e266d6aa238a9ea26 (patch)
tree2d4bee27377460cda2b3202536bd1aa25f0e1256 /modules/mail
parent84b566863ec2c8d462db645b19a871837e85c989 (diff)
downloadgsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar.gz
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar.bz2
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar.lz
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar.xz
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.tar.zst
gsoc2013-evolution-23b38d5c4573636f6c42e65e266d6aa238a9ea26.zip
Bug #656133 - Mail-local not initialized when adding/editing account
Diffstat (limited to 'modules/mail')
-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,