diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-07 21:41:35 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-07 21:41:35 (EST) |
commit | 635aa6c46b62d96e7c6173795246812a0eec6259 (patch) | |
tree | 97ccf18f32ee25e3e6431776252340c892b9a7a0 /src | |
parent | 31695be0e739f0653576d8fd937b885abf32768a (diff) | |
download | marquee-635aa6c46b62d96e7c6173795246812a0eec6259.zip marquee-635aa6c46b62d96e7c6173795246812a0eec6259.tar.gz marquee-635aa6c46b62d96e7c6173795246812a0eec6259.tar.bz2 |
about:profiles: Break from query keys loop after editing
Each request performs only one editing action.
Diffstat (limited to 'src')
-rw-r--r-- | src/schemes/about/profiles.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index eea34d1..2f4ee99 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -377,16 +377,19 @@ edit_profiles(MqProfiles *profiles, GHashTable *query) } g_free(name_key); g_free(color_key); + 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); } + 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); } + break; } } |