[evolution/email-factory-3-4: 34/53] Commit the file missed by prev commit.



commit 0b82e7af954cbce9ca2a1b113c7e4fb50be7d31c
Author: Srinivasa Ragavan <sragavan gnome org>
Date:   Fri Dec 16 15:59:24 2011 +0530

    Commit the file missed by prev commit.

 mail/e-mail-account-store.c |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/mail/e-mail-account-store.c b/mail/e-mail-account-store.c
index 3e93fa7..6c1300a 100644
--- a/mail/e-mail-account-store.c
+++ b/mail/e-mail-account-store.c
@@ -1165,11 +1165,16 @@ e_mail_account_store_enable_service (EMailAccountStore *store,
                                      CamelService *service)
 {
 	GtkTreeIter iter;
-	gboolean proceed = TRUE;
+	gboolean proceed;
+	MailFolderCache *cache;
+	EMailSession *session;
 
 	g_return_if_fail (E_IS_MAIL_ACCOUNT_STORE (store));
 	g_return_if_fail (CAMEL_IS_SERVICE (service));
 
+	session = e_mail_account_store_get_session (store);
+	cache = e_mail_session_get_folder_cache (session);
+
 	if (!mail_account_store_get_iter (store, service, &iter))
 		g_return_if_reached ();
 
@@ -1183,7 +1188,7 @@ e_mail_account_store_enable_service (EMailAccountStore *store,
 		gtk_list_store_set (
 			GTK_LIST_STORE (store), &iter,
 			E_MAIL_ACCOUNT_STORE_COLUMN_ENABLED, TRUE, -1);
-
+		mail_folder_cache_service_enabled (cache, service);
 		g_signal_emit (store, signals[SERVICE_ENABLED], 0, service);
 	}
 }



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