[evolution] Bug #656133 - Mail-local not initialized when adding/editing account



commit 23b38d5c4573636f6c42e65e266d6aa238a9ea26
Author: Milan Crha <mcrha redhat com>
Date:   Thu Aug 11 14:19:51 2011 +0200

    Bug #656133 - Mail-local not initialized when adding/editing account

 modules/mail/em-account-prefs.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/modules/mail/em-account-prefs.c b/modules/mail/em-account-prefs.c
index 1caf517..9a89cae 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,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]