[evolution-data-server] Bug #629507 - e_book_backend_cache_set_time doesn't rewrite old value



commit d535d4b09c61a8277084ddce0cfafc737b69fab2
Author: Milan Crha <mcrha redhat com>
Date:   Wed Sep 29 12:25:08 2010 +0200

    Bug #629507 - e_book_backend_cache_set_time doesn't rewrite old value

 addressbook/libedata-book/e-book-backend-cache.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/addressbook/libedata-book/e-book-backend-cache.c b/addressbook/libedata-book/e-book-backend-cache.c
index 857c6d3..e2cca60 100644
--- a/addressbook/libedata-book/e-book-backend-cache.c
+++ b/addressbook/libedata-book/e-book-backend-cache.c
@@ -283,7 +283,6 @@ e_book_backend_cache_set_populated (EBookBackendCache *cache)
 {
 	g_return_if_fail (E_IS_BOOK_BACKEND_CACHE (cache));
 	e_file_cache_add_object (E_FILE_CACHE (cache), "populated", "TRUE");
-
 }
 
 /**
@@ -307,7 +306,8 @@ void
 e_book_backend_cache_set_time (EBookBackendCache *cache, const gchar *t)
 {
 	g_return_if_fail (E_IS_BOOK_BACKEND_CACHE (cache));
-	e_file_cache_add_object (E_FILE_CACHE (cache), "last_update_time", t);
+	if (!e_file_cache_add_object (E_FILE_CACHE (cache), "last_update_time", t))
+		e_file_cache_replace_object (E_FILE_CACHE (cache), "last_update_time", t);
 }
 
 gchar *



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]