diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-04 23:16:12 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-04 23:16:12 (EDT) |
commit | 8743c15aa2b36fc853a9d9065075377bc40d7a8d (patch) | |
tree | 6e0a21f638c4b570350de3f6c9dd054920db4bac /src | |
parent | 1753b6e061e3008a854f6d5d5ff3cc1a07302cfe (diff) | |
download | marquee-8743c15aa2b36fc853a9d9065075377bc40d7a8d.zip marquee-8743c15aa2b36fc853a9d9065075377bc40d7a8d.tar.gz marquee-8743c15aa2b36fc853a9d9065075377bc40d7a8d.tar.bz2 |
about:profiles: Insert new profiles
Diffstat (limited to 'src')
-rw-r--r-- | src/schemes/about/profiles.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index 3cb0709..eb9454b 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -125,6 +125,12 @@ edit_profiles(MqProfiles *profiles, GHashTable *query) mq_profiles_set_name(profiles, id, g_hash_table_lookup(query, input_key)); g_free(input_key); + } else { + input_key = g_strconcat("name_", id, NULL); + mq_profiles_insert(profiles, + g_hash_table_lookup(query, input_key), + "#00ff00"); + g_free(input_key); } } else if (g_str_has_prefix(key->data, "delete_")) { id = (gchar *) key->data + strlen("delete_"); |