[evolution-mapi] Connect on demand when in online mode
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi] Connect on demand when in online mode
- Date: Thu, 21 Apr 2011 09:02:55 +0000 (UTC)
commit e61eaeb5cebfbb2dca18d1e1faf954264516b7e6
Author: Milan Crha <mcrha redhat com>
Date: Thu Apr 21 11:02:10 2011 +0200
Connect on demand when in online mode
src/camel/camel-mapi-store.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 528c13f..d251ae2 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1743,7 +1743,6 @@ mapi_connect_sync (CamelService *service,
{
CamelMapiStore *store = CAMEL_MAPI_STORE (service);
CamelMapiStorePrivate *priv = store->priv;
- CamelServiceConnectionStatus status;
CamelProvider *provider;
CamelSession *session;
CamelURL *url;
@@ -1752,9 +1751,8 @@ mapi_connect_sync (CamelService *service,
url = camel_service_get_camel_url (service);
session = camel_service_get_session (service);
provider = camel_service_get_provider (service);
- status = camel_service_get_connection_status (service);
- if (status == CAMEL_SERVICE_DISCONNECTED) {
+ if (!camel_offline_store_get_online (CAMEL_OFFLINE_STORE (store))) {
return FALSE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]