summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Cai <jeff.cai@sun.com>2005-11-18 05:56:35 +0000
committerHarry Lu <haip@src.gnome.org>2005-11-18 05:56:35 +0000
commit69825c54663238ee8564305c7bf0d4c3dc8464fb (patch)
tree39b515011cd97855543efe6fff366e7418f23275
parent47414b15b509bf16bb1437223c6b5bce2d93e6da (diff)
downloadevolution-data-server-69825c54663238ee8564305c7bf0d4c3dc8464fb.tar.gz
If no diary is created, no need to do resync.
2005-11-18 Jeff Cai <jeff.cai@sun.com> * camel-disco-store.c: (disco_connect): If no diary is created, no need to do resync.
-rw-r--r--camel/ChangeLog5
-rw-r--r--camel/camel-disco-store.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6cb5acc44..443133540 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-18 Jeff Cai <jeff.cai@sun.com>
+
+ * camel-disco-store.c: (disco_connect):
+ If no diary is created, no need to do resync.
+
2005-10-28 Parthasarathi Susarla <sparthasarathi@novell.com>
** See bug #218177
diff --git a/camel/camel-disco-store.c b/camel/camel-disco-store.c
index cee7ec6da..57babf457 100644
--- a/camel/camel-disco-store.c
+++ b/camel/camel-disco-store.c
@@ -159,6 +159,10 @@ disco_connect (CamelService *service, CamelException *ex)
case CAMEL_DISCO_STORE_RESYNCING:
if (!CDS_CLASS (service)->connect_online (service, ex))
return FALSE;
+
+ if (!store->diary)
+ return TRUE;
+
d(printf(" diary is %s\n", camel_disco_diary_empty(store->diary)?"empty":"not empty"));
if (camel_disco_diary_empty (store->diary))
return TRUE;