[evolution-data-server/gnome-2-32] Bug #629507 - e_book_backend_cache_set_time doesn't rewrite old value
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server/gnome-2-32] Bug #629507 - e_book_backend_cache_set_time doesn't rewrite old value
- Date: Wed, 29 Sep 2010 10:26:22 +0000 (UTC)
commit f09c417d4f1647075dff680c6e8083fdf7362b78
Author: Milan Crha <mcrha redhat com>
Date: Wed Sep 29 12:25:50 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 f7fd2dd..cfa81ec 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]