diff options
Diffstat (limited to 'plugins/shared-folder')
-rw-r--r-- | plugins/shared-folder/ChangeLog | 8 | ||||
-rw-r--r-- | plugins/shared-folder/share-folder-common.c | 9 |
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.")); |