[evolution-mapi] Bug #668819 - Set error when no folder found



commit e0a790549b8e42613497b01b3323485674390c0c
Author: Milan Crha <mcrha redhat com>
Date:   Wed Apr 25 13:59:02 2012 +0200

    Bug #668819 - Set error when no folder found

 src/camel/camel-mapi-store.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index e7875a7..9568e9f 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -818,6 +818,11 @@ mapi_get_folder_info_offline (CamelStore *store, const gchar *top,
 
 	unescape_folder_names (fi);
 
+	if (!fi && error && !*error)
+		g_set_error_literal (error, CAMEL_STORE_ERROR, CAMEL_STORE_ERROR_NO_FOLDER,
+			(flags & CAMEL_STORE_FOLDER_INFO_SUBSCRIPTION_LIST) != 0 ?
+			_("No public folder found") : _("No folder found"));
+
 	return fi;
 }
 



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