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/ChangeLog | 8 ++++++++ plugins/shared-folder/share-folder-common.c | 9 +++++++++ 2 files changed, 17 insertions(+) (limited to 'plugins') diff --git a/plugins/shared-folder/ChangeLog b/plugins/shared-folder/ChangeLog index fab2bbd8a8..13cb813308 100644 --- a/plugins/shared-folder/ChangeLog +++ b/plugins/shared-folder/ChangeLog @@ -1,3 +1,10 @@ +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 + 2005-03-31 Vivek Jain **Fixes #74002 @@ -25,6 +32,7 @@ name from the top most parent. This will give proper container id even in the case of the duplicate names at different hierarchies +>>>>>>> 1.15 2005-03-10 Vivek Jain **Fixes #73201 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