From 41c66f2d87932113de4cfb2a19a13daf67681297 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 7 Jan 2011 14:52:07 -0500 Subject: Avoid idle callbacks in EMailBackend initialization. If the migration phase has to show a dialog the idle callback for intializing mail stores will run too soon. Instead, hook it onto the EShellBackend start() method. Migration code can initialize mail stores early if it needs to. --- mail/e-mail-store.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mail/e-mail-store.c') diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c index ac0e97562b..1e4155bf6e 100644 --- a/mail/e-mail-store.c +++ b/mail/e-mail-store.c @@ -268,8 +268,8 @@ e_mail_store_init (EMailSession *session, g_return_if_fail (E_IS_MAIL_SESSION (session)); - /* This function is idempotent, but there should - * be no need to call it more than once. */ + /* This function is idempotent because mail + * migration code may need to call it early. */ if (initialized) return; -- cgit v1.2.3