summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-04 15:49:02 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-04 15:49:02 (EDT)
commitdd0b67694ff464d368e6e6dfb17d37fc7e1bf34a (patch)
treecc924085d65905ae0a991d1a6d6cf13b396b019c
parent605cfeaa6e357f09236e3ba21cefa2cd957464c4 (diff)
downloadmarquee-dd0b67694ff464d368e6e6dfb17d37fc7e1bf34a.zip
marquee-dd0b67694ff464d368e6e6dfb17d37fc7e1bf34a.tar.gz
marquee-dd0b67694ff464d368e6e6dfb17d37fc7e1bf34a.tar.bz2
about:profiles: Disable "Make Default" button on default profile
-rw-r--r--src/schemes/about/profiles.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c
index e2522aa..842ae1c 100644
--- a/src/schemes/about/profiles.c
+++ b/src/schemes/about/profiles.c
@@ -54,7 +54,8 @@ generate_div(MqProfiles *profiles, gchar *id)
mq_profile_icon_new(mq_profiles_get_color(profiles, id)),
mq_html_container("span", NULL, name, NULL),
mq_html_input_text(name_str, NULL, name),
- mq_html_submit(default_str, "Make Default", FALSE/*TODO*/),
+ mq_html_submit(default_str, "Make Default",
+ mq_profiles_is_default(profiles, id)),
mq_html_submit(delete_str, "Delete", FALSE),
mq_html_label(editing_str, "Edit", FALSE),
mq_html_submit(save_str, "Save", FALSE),