[evolution-patches] Fix for bug #74002



hi,

The attached patch fixes 
http://bugzilla.ximian.com/show_bug.cgi?id=74002

The changes are made in share-folder-common.c.
Just included a condition check for offline store. In that case getting
a connection should not be allowed.

Thanks,
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/ChangeLog,v
retrieving revision 1.13
diff -u -p -r1.13 ChangeLog
--- ChangeLog	28 Mar 2005 08:16:16 -0000	1.13
+++ ChangeLog	28 Mar 2005 08:24:07 -0000
@@ -1,5 +1,11 @@
 2005-03-28  Vivek Jain <jvivek novell com>
 	
+	**Fixes #74002
+	* share-folder-common.c : (get_cnc):
+	return cnc as NULL if evoluiton is in offline.
+
+2005-03-28  Vivek Jain <jvivek novell com>
+	
 	**Fixes #73198
 	* share-folder-common.c : 
 	(org_gnome_shared_folder_factory):
Index: share-folder-common.c
===================================================================
RCS file: /cvs/gnome/evolution/plugins/shared-folder/share-folder-common.c,v
retrieving revision 1.13
diff -u -p -r1.13 share-folder-common.c
--- share-folder-common.c	28 Mar 2005 08:16:16 -0000	1.13
+++ share-folder-common.c	28 Mar 2005 08:24:07 -0000
@@ -40,6 +40,7 @@
 #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>
@@ -419,6 +420,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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]