projects
/
platform
/
upstream
/
evolution-data-server.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bd971e9
)
Bug #629507 - e_book_backend_cache_set_time doesn't rewrite old value
author
Milan Crha
<mcrha@redhat.com>
Wed, 29 Sep 2010 10:25:08 +0000
(12:25 +0200)
committer
Milan Crha
<mcrha@redhat.com>
Wed, 29 Sep 2010 10:25:08 +0000
(12:25 +0200)
addressbook/libedata-book/e-book-backend-cache.c
patch
|
blob
|
history
diff --git
a/addressbook/libedata-book/e-book-backend-cache.c
b/addressbook/libedata-book/e-book-backend-cache.c
index
857c6d3
..
e2cca60
100644
(file)
--- 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 *