[evolution] Do not load disabled services while creating new folder
- From: Chenthill Palanisamy <pchen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Do not load disabled services while creating new folder
- Date: Mon, 19 Dec 2011 15:16:23 +0000 (UTC)
commit 0b5671411919aa9197f410532a923e2dcafe6a0d
Author: Chenthill Palanisamy <pchenthill novell com>
Date: Mon Dec 19 19:23:17 2011 +0530
Do not load disabled services while creating new folder
mail/em-folder-utils.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/em-folder-utils.c b/mail/em-folder-utils.c
index 2ee275d..aa2500c 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);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]