[evolution-patches] (share folder) fix for bug 74002
- From: Parthasarathi Susarla <sparthasarathi novell com>
- To: ep <evolution-patches lists ximian com>
- Subject: [evolution-patches] (share folder) fix for bug 74002
- Date: Thu, 31 Mar 2005 18:49:06 +0530
hi,
the attached patch fixes bug 74002
http://bugzilla.ximian.com/show_bug.cgi?id=74002
cheers,
partha
Index: share-folder-common.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/share-folder-common.c,v
retrieving revision 1.11.2.1
diff -u -p -r1.11.2.1 share-folder-common.c
--- share-folder-common.c 15 Mar 2005 02:41:52 -0000 1.11.2.1
+++ share-folder-common.c 31 Mar 2005 13:09:12 -0000
@@ -42,9 +42,11 @@
#include <camel/camel-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 "share-folder.h"
#define d(x)
@@ -212,6 +214,13 @@ create_folder (CamelStore *store, const
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, '/'))) {
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/ChangeLog,v
retrieving revision 1.11.2.1
diff -u -p -r1.11.2.1 ChangeLog
--- ChangeLog 15 Mar 2005 02:41:52 -0000 1.11.2.1
+++ ChangeLog 31 Mar 2005 13:11:42 -0000
@@ -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-10 Vivek Jain <jvivek novell com>
**Fixes #73201
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]