From 0b5671411919aa9197f410532a923e2dcafe6a0d Mon Sep 17 00:00:00 2001 From: Chenthill Palanisamy Date: Mon, 19 Dec 2011 19:23:17 +0530 Subject: Do not load disabled services while creating new folder --- mail/em-folder-utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'mail') diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c index 2ee275d098..aa2500cb7c 100644 --- a/mail/em-folder-utils.c +++ b/mail/em-folder-utils.c @@ -42,6 +42,7 @@ #include "e-util/e-mktemp.h" #include "e-util/e-alert-dialog.h" +#include "e-util/e-account-utils.h" #include "em-vfolder-rule.h" @@ -571,6 +572,7 @@ em_folder_utils_create_folder (GtkWindow *parent, for (link = list; link != NULL; link = g_list_next (link)) { CamelService *service; CamelStore *store; + EAccount *account; const gchar *uid, *prop = NULL; service = CAMEL_SERVICE (link->data); @@ -592,6 +594,10 @@ em_folder_utils_create_folder (GtkWindow *parent, if (prop && !e_shell_settings_get_boolean (shell_settings, prop)) continue; + account = e_get_account_by_uid (uid); + if (account && !account->enabled) + continue; + em_folder_tree_model_add_store (model, store); } -- cgit v1.2.3