diff options
author | Shaun McCance <shaunm@gnome.org> | 2012-01-20 15:33:30 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2012-01-20 15:33:30 -0500 |
commit | 8b5ad3261bf1a7df86a1c5f50f8f6e8104d97aa5 (patch) | |
tree | 251ad83e33b08af1fcb6558c530334305faf8aee | |
parent | ac97bbd9dc5ccfd942e770d41d37ce2668cf8ebd (diff) | |
download | yelp-8b5ad3261bf1a7df86a1c5f50f8f6e8104d97aa5.tar.gz |
yelp-application: Fix bookmark updating
I was calling g_settings_set incorrectly, and it cleared out the
bookmarks for a document whenever one had to be updated. This might
fix bug #649432, though I couldn't reproduce a crash.
-rw-r--r-- | src/yelp-application.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/yelp-application.c b/src/yelp-application.c index a0a36047..4aafade9 100644 --- a/src/yelp-application.c +++ b/src/yelp-application.c @@ -672,7 +672,8 @@ yelp_application_update_bookmarks (YelpApplication *app, g_variant_iter_free (iter); if (updated) - g_settings_set (settings, "bookmarks", "a(sss)", builder); + g_settings_set_value (settings, "bookmarks", + g_variant_builder_end (&builder)); else g_variant_builder_clear (&builder); } |