From 8743c15aa2b36fc853a9d9065075377bc40d7a8d Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 23:16:12 -0400 Subject: about:profiles: Insert new profiles --- (limited to 'src/schemes/about/profiles.c') 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_"); -- cgit v0.9.1