aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2005-04-11 16:04:05 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2005-04-11 16:04:05 +0800
commitc22bfb944cafceab777a75aad8d4e693a327ca36 (patch)
tree520f5573044fc2ddd0506a8f9924b7fabf449ad2
parentd3f30c99aa21aebda88ed8eaac8f36be1dffd257 (diff)
downloadgsoc2013-evolution-c22bfb944cafceab777a75aad8d4e693a327ca36.tar.gz
gsoc2013-evolution-c22bfb944cafceab777a75aad8d4e693a327ca36.tar.zst
gsoc2013-evolution-c22bfb944cafceab777a75aad8d4e693a327ca36.zip
check the store state, can create a shared folder only in online mode
2005-03-31 Parthasarathi Susarla <sparthasarathi@novell.com> * 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
-rw-r--r--plugins/shared-folder/ChangeLog8
-rw-r--r--plugins/shared-folder/share-folder-common.c9
2 files changed, 17 insertions, 0 deletions
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 <sparthasarathi@novell.com>
+
+ * 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 <jvivek@novell.com>
**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 <jvivek@novell.com>
**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 <camel/camel-offline-store.h>
#include <camel/camel-vee-store.h>
#include <camel/camel-folder.h>
+#include <camel/camel-offline-store.h>
#include <e-gw-container.h>
#include <e-gw-connection.h>
#include <glade/glade.h>
+#include <widgets/misc/e-error.h>
#include <libgnomeui/libgnomeui.h>
#include <widgets/misc/e-error.h>
#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."));