diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-12 23:00:37 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-12 23:00:37 -0400 |
commit | 21ca3015a4f89a546440699dc22a3d23401719ad (patch) | |
tree | 8788bfe8733e45817b1c0f01f434aafef87cede6 /engine | |
parent | 2b182bb83a3fbaa72446f0f30f09b39a6f9c6c5f (diff) | |
download | dconf-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.c | 5 |
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 |