[evolution-mapi/gnome-3-0] Connect on demand when in online mode



commit a6842fd3380abb615b1bd303bc0c41131515251f
Author: Milan Crha <mcrha redhat com>
Date:   Thu Apr 21 11:03:14 2011 +0200

    Connect on demand when in online mode

 src/camel/camel-mapi-store.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/camel/camel-mapi-store.c b/src/camel/camel-mapi-store.c
index 3e7b0da..e590a08 100644
--- a/src/camel/camel-mapi-store.c
+++ b/src/camel/camel-mapi-store.c
@@ -1718,7 +1718,7 @@ mapi_connect_sync (CamelService *service,
 	CamelMapiStorePrivate *priv = store->priv;
 	guint16 event_mask = 0;
 
-	if (service->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]