From c22bfb944cafceab777a75aad8d4e693a327ca36 Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Mon, 11 Apr 2005 08:04:05 +0000 Subject: check the store state, can create a shared folder only in online mode 2005-03-31 Parthasarathi Susarla * share-folder-common.c:(create_folder): check the store state, can create a shared folder only in online mode Fixes bug 74002 svn path=/trunk/; revision=29203 --- plugins/shared-folder/share-folder-common.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/shared-folder/share-folder-common.c') diff --git a/plugins/shared-folder/share-folder-common.c b/plugins/shared-folder/share-folder-common.c index 9d5b71ce77..6dd8c70a53 100644 --- a/plugins/shared-folder/share-folder-common.c +++ b/plugins/shared-folder/share-folder-common.c @@ -43,9 +43,11 @@ #include #include #include +#include #include #include #include +#include #include #include #include "share-folder.h" @@ -215,6 +217,13 @@ create_folder (CamelStore *store, const char *full_name, void (* done) (struct _ const char *parent; int id; + + if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { + //e_error_run (NULL, _("Cannot create GroupWise folders in offline mode."), NULL, NULL); + g_warning (_("Cannot Create shared folder in offline mode.")); + return -1; + } + if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL) { //e_error_run (NULL, _("Cannot create GroupWise folders in offline mode."), NULL, NULL); g_warning (_("Cannot Create shared folder in offline mode.")); -- cgit v1.2.3