aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-offline-handler.c
diff options
context:
space:
mode:
authorPeter Williams <peterw@ximian.com>2002-07-15 23:00:05 +0800
committerPeter Williams <peterw@src.gnome.org>2002-07-15 23:00:05 +0800
commitf9a7422465a5f6c05d080cdbb8b06932d45ce8df (patch)
treec598d897823fd93e057fc3b5112fdbcaa1a68311 /mail/mail-offline-handler.c
parent7e9fe066648a94d79835ea45c83d536d03e558fe (diff)
downloadgsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar.gz
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar.bz2
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar.lz
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar.xz
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.tar.zst
gsoc2013-evolution-f9a7422465a5f6c05d080cdbb8b06932d45ce8df.zip
Account for the case that when a disco store is "online" but actually
2002-07-15 Peter Williams <peterw@ximian.com> * mail-offline-handler.c (service_is_relevant): Account for the case that when a disco store is "online" but actually offline and we're going online, we should actually connect it. * component-factory.c (mail_load_storages): Always set auto_connect to FALSE, same reason as below. * mail-session.c (mail_session_init): Initialize our session to not be online, since the shell will tell us to go online if we need to. svn path=/trunk/; revision=17459
Diffstat (limited to 'mail/mail-offline-handler.c')
-rw-r--r--mail/mail-offline-handler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/mail-offline-handler.c b/mail/mail-offline-handler.c
index a24f52a79c..fa374efc73 100644
--- a/mail/mail-offline-handler.c
+++ b/mail/mail-offline-handler.c
@@ -48,9 +48,9 @@ service_is_relevant (CamelService *service, gboolean going_offline)
(service->provider->flags & CAMEL_PROVIDER_IS_EXTERNAL))
return FALSE;
- if (CAMEL_IS_DISCO_STORE (service) && going_offline &&
+ if (CAMEL_IS_DISCO_STORE (service) &&
camel_disco_store_status (CAMEL_DISCO_STORE (service)) == CAMEL_DISCO_STORE_OFFLINE)
- return FALSE;
+ return !going_offline;
return service->status != CAMEL_SERVICE_DISCONNECTED;
}