From 03f7ff961fd46c9141aba624a278e19de0bf3211 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= Date: Wed, 18 Oct 2023 07:50:16 +0200 Subject: [PATCH] cache: Fix uncached value Closes: #35 Fixes: 6561c9fe940d4acb07c5eae63867c46683a02f2c Related: !33 --- xfconf/xfconf-cache.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/xfconf/xfconf-cache.c b/xfconf/xfconf-cache.c index 61333503..727af956 100644 --- a/xfconf/xfconf-cache.c +++ b/xfconf/xfconf-cache.c @@ -947,9 +947,7 @@ xfconf_cache_set(XfconfCache *cache, g_hash_table_insert(cache->pending_calls, old_item->cancellable, old_item); if(item) { - if (item->value != NULL) { - xfconf_cache_item_update(item, value); - } + xfconf_cache_item_update(item, value); } else { item = xfconf_cache_item_new(value, FALSE); g_tree_insert(cache->properties, g_strdup(property), item); -- GitLab