diff options
Diffstat (limited to 'plugins/shared-folder/share-folder-common.c')
-rw-r--r-- | plugins/shared-folder/share-folder-common.c | 9 |
1 files changed, 9 insertions, 0 deletions
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.")); |