aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/shared-folder/ChangeLog7
-rw-r--r--plugins/shared-folder/share-folder-common.c11
2 files changed, 18 insertions, 0 deletions
diff --git a/plugins/shared-folder/ChangeLog b/plugins/shared-folder/ChangeLog
index 8d381f4e0b..fab2bbd8a8 100644
--- a/plugins/shared-folder/ChangeLog
+++ b/plugins/shared-folder/ChangeLog
@@ -1,5 +1,12 @@
2005-03-31 Vivek Jain <jvivek@novell.com>
+ **Fixes #74002
+ * share-folder-common.c :
+ (get_cnc): return cnc as NULL if evoluiton is in offline.
+ (create_folder): return -1 if in offline
+
+2005-03-31 Vivek Jain <jvivek@novell.com>
+
**Fixes #73787 (bugzilla innerweb.novell)
* share-folder.c :
(add_right_clicked)
diff --git a/plugins/shared-folder/share-folder-common.c b/plugins/shared-folder/share-folder-common.c
index 69a8049043..9d5b71ce77 100644
--- a/plugins/shared-folder/share-folder-common.c
+++ b/plugins/shared-folder/share-folder-common.c
@@ -40,12 +40,14 @@
#include <camel/camel-store.h>
#include <camel/camel-session.h>
#include <camel/camel-store.h>
+#include <camel/camel-offline-store.h>
#include <camel/camel-vee-store.h>
#include <camel/camel-folder.h>
#include <e-gw-container.h>
#include <e-gw-connection.h>
#include <glade/glade.h>
#include <libgnomeui/libgnomeui.h>
+#include <widgets/misc/e-error.h>
#include "share-folder.h"
#define d(x)
@@ -212,6 +214,12 @@ create_folder (CamelStore *store, const char *full_name, void (* done) (struct _
struct _EMCreateFolder *m;
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;
+ }
namebuf = g_strdup (full_name);
if (!(name = strrchr (namebuf, '/'))) {
@@ -420,6 +428,9 @@ get_cnc (CamelStore *store)
if (!store)
return NULL;
+ if (((CamelOfflineStore *) store)->state == CAMEL_OFFLINE_STORE_NETWORK_UNAVAIL)
+ return NULL;
+
service = CAMEL_SERVICE(store);
url = service->url;
server_name = g_strdup (url->host);