[epiphany/wip/tingping/profile-migration: 6/6] fixup! Store web extension settings in a keyfile
- From: Patrick Griffis <pgriffis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/tingping/profile-migration: 6/6] fixup! Store web extension settings in a keyfile
- Date: Fri, 21 Dec 2018 14:25:12 +0000 (UTC)
commit b8381808d7dc12b96461f04385f095b4b8d5372e
Author: Patrick Griffis <pgriffis igalia com>
Date: Fri Dec 21 09:23:13 2018 -0500
fixup! Store web extension settings in a keyfile
lib/ephy-settings.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/lib/ephy-settings.c b/lib/ephy-settings.c
index 57d86d422..802ca4356 100644
--- a/lib/ephy-settings.c
+++ b/lib/ephy-settings.c
@@ -122,9 +122,10 @@ sync_settings (GSettings *original,
g_object_get (original, "settings-schema", &schema, NULL);
keys = g_settings_schema_list_keys (schema);
- for (size_t i = 0; keys[i]; ++i) {
+ for (size_t i = 0; keys[i] != NULL; ++i) {
const char *key = keys[i];
g_autoptr(GVariant) value = g_settings_get_user_value (original, key);
+
if (value != NULL)
g_settings_set_value (new, key, value);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]