aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-favicon-cache.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-favicon-cache.c')
-rw-r--r--embed/ephy-favicon-cache.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/embed/ephy-favicon-cache.c b/embed/ephy-favicon-cache.c
index fd3c4192b..d289fd4ab 100644
--- a/embed/ephy-favicon-cache.c
+++ b/embed/ephy-favicon-cache.c
@@ -324,8 +324,8 @@ ephy_favicon_cache_dest (EphyFaviconCache *cache, const char *url)
void
ephy_favicon_cache_insert_from_url (EphyFaviconCache *cache,
- const char *url,
- const char *favicon_url)
+ const char *url,
+ const char *favicon_url)
{
EphyEmbedPersist *persist;
char *dest;
@@ -337,6 +337,8 @@ ephy_favicon_cache_insert_from_url (EphyFaviconCache *cache,
dest = ephy_favicon_cache_dest (cache, favicon_url);
g_return_if_fail (dest != NULL);
+ if (g_file_test (dest, G_FILE_TEST_EXISTS)) return;
+
persist = ephy_embed_persist_new (NULL);
ephy_embed_persist_set_max_size (persist, 100);