summaryrefslogtreecommitdiffstats
path: root/source/xfce/xfconf/03f7ff961fd46c9141aba624a278e19de0bf3211.patch
blob: 80736d521be40af52ef8853edcffaad56edfbdf6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 03f7ff961fd46c9141aba624a278e19de0bf3211 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABl=20Bonithon?= <gael@xfce.org>
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