summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-12 23:00:37 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-12 23:00:37 -0400
commit21ca3015a4f89a546440699dc22a3d23401719ad (patch)
tree8788bfe8733e45817b1c0f01f434aafef87cede6 /engine
parent2b182bb83a3fbaa72446f0f30f09b39a6f9c6c5f (diff)
downloaddconf-21ca3015a4f89a546440699dc22a3d23401719ad.tar.gz
engine/: don't check for writability on reset
Resetting keys should absolutely always succeed, so don't check for key writability in that case.
Diffstat (limited to 'engine')
-rw-r--r--engine/dconf-engine.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/engine/dconf-engine.c b/engine/dconf-engine.c
index cf10f84..9e44f46 100644
--- a/engine/dconf-engine.c
+++ b/engine/dconf-engine.c
@@ -971,7 +971,10 @@ dconf_engine_is_writable_changeset_predicate (const gchar *key,
{
DConfEngine *engine = user_data;
- return dconf_engine_is_writable_internal (engine, key);
+ /* Resets absolutely always succeed -- even in the case that there is
+ * not even a writable database.
+ */
+ return value == NULL || dconf_engine_is_writable_internal (engine, key);
}
static gboolean