diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-07 21:43:36 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-07 21:43:36 (EST) |
commit | 8f23303b6463ae260b1cba41602c583df502e7f6 (patch) | |
tree | 492ade3530112c410c89247f70899c947be4abea /src/schemes/about | |
parent | 635aa6c46b62d96e7c6173795246812a0eec6259 (diff) | |
download | marquee-8f23303b6463ae260b1cba41602c583df502e7f6.zip marquee-8f23303b6463ae260b1cba41602c583df502e7f6.tar.gz marquee-8f23303b6463ae260b1cba41602c583df502e7f6.tar.bz2 |
about:profiles: Move mq_profiles_save() into query key branches
Diffstat (limited to 'src/schemes/about')
-rw-r--r-- | src/schemes/about/profiles.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index 2f4ee99..d48657d 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -377,25 +377,26 @@ edit_profiles(MqProfiles *profiles, GHashTable *query) } g_free(name_key); g_free(color_key); + mq_profiles_save(profiles); break; } else if (g_str_has_prefix(key->data, "delete_")) { id = (gchar *) key->data + strlen("delete_"); if (id[0]) { /* Don't remove new profile. */ mq_profiles_remove(profiles, id); } + mq_profiles_save(profiles); break; } else if (g_str_has_prefix(key->data, "default_")) { id = (gchar *) key->data + strlen("default_"); if (id[0]) { /* Don't set new profile as default. */ mq_profiles_set_default(profiles, id); } + mq_profiles_save(profiles); break; } } g_list_free(keys); - - mq_profiles_save(profiles); } void |