summaryrefslogtreecommitdiff
path: root/src/trg-prefs.c
diff options
context:
space:
mode:
authorGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-28 08:09:18 +0000
committerGravatar Alan Fitton <ajf@eth0.org.uk>2011-08-28 08:09:18 +0000
commit217141e7fe29e5ccc9c9f39ab0402667cc4bec9f (patch)
tree7c78a5e0530999bc8ff1de3c32b613d296d18cd8 /src/trg-prefs.c
parentdaa8efedc9dc29a15256c2966ace728fa3e2c3a9 (diff)
remember to save the new profile pointer on first load
Diffstat (limited to 'src/trg-prefs.c')
-rw-r--r--src/trg-prefs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/trg-prefs.c b/src/trg-prefs.c
index 319d91e..9c320cd 100644
--- a/src/trg-prefs.c
+++ b/src/trg-prefs.c
@@ -321,10 +321,10 @@ void trg_prefs_empty_init(TrgPrefs *p) {
priv->userObj = json_object_new();
json_node_take_object(priv->user, priv->userObj);
- JsonObject *profile = trg_prefs_new_profile_object();
+ priv->profile = trg_prefs_new_profile_object();
JsonArray *profiles = json_array_new();
- json_array_add_object_element(profiles, profile);
+ json_array_add_object_element(profiles, priv->profile);
json_object_set_array_member(priv->userObj, TRG_PREFS_KEY_PROFILES,
profiles);