diff options
author | Richard Hughes <richard@hughsie.com> | 2013-08-03 11:34:51 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2013-08-03 11:34:53 +0200 |
commit | c11675831eb38ea13807decf1bc73b1638ba516d (patch) | |
tree | 62f3ab858b4cab57167bd618d37dd23c147daf52 | |
parent | fc2d2cad62860efe51f131a443eada1b70925754 (diff) | |
download | colord-c11675831eb38ea13807decf1bc73b1638ba516d.tar.gz |
libcolord: Always calculate the fallback checksum when using CdIccStore
Using profiles without an embedded profile-id is still very common, and given
the CdIccStore relies so much on the checksum for duplicate checking we should
enforce that at *least* this flag is set by default.
-rw-r--r-- | lib/colord/cd-icc-store.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/colord/cd-icc-store.c b/lib/colord/cd-icc-store.c index 1e149ea..10af71b 100644 --- a/lib/colord/cd-icc-store.c +++ b/lib/colord/cd-icc-store.c @@ -552,7 +552,7 @@ void cd_icc_store_set_load_flags (CdIccStore *store, CdIccLoadFlags load_flags) { g_return_if_fail (CD_IS_ICC_STORE (store)); - store->priv->load_flags = load_flags; + store->priv->load_flags = load_flags | CD_ICC_LOAD_FLAGS_FALLBACK_MD5; } /** @@ -772,6 +772,7 @@ static void cd_icc_store_init (CdIccStore *store) { store->priv = CD_ICC_STORE_GET_PRIVATE (store); + store->priv->load_flags = CD_ICC_LOAD_FLAGS_FALLBACK_MD5; store->priv->icc_array = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref); store->priv->directory_array = g_ptr_array_new_with_free_func ((GDestroyNotify) cd_icc_store_helper_free); } |