[evolution-mapi] Bug #629484 - Do not refresh 'Favourites' folder itself



commit 225abd898b7b8e0a2609f89239a38a5aafd6c83c
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 29 12:32:21 2010 +0200

    Bug #629484 - Do not refresh 'Favourites' folder itself

 src/camel/camel-mapi-store.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index cc59cdb..b864e5f 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -819,6 +819,10 @@ mapi_store_can_refresh_folder (CamelStore *store,
                                CamelFolderInfo *info,
                                GError **error)
 {
+	/* skip unselectable folders from automatic refresh */
+	if (info && (info->flags & CAMEL_FOLDER_NOSELECT) != 0)
+		return FALSE;
+
 	return CAMEL_STORE_CLASS(camel_mapi_store_parent_class)->can_refresh_folder (store, info, error) ||
 	      (camel_url_get_param (((CamelService *)store)->url, "check_all") != NULL);
 }



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