From 1cdc5bb1e7c50bdf6875444ac586a0e272e5756f Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 21:53:49 -0400 Subject: about:profiles: Disable default button for new profile --- diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index 7e2bb7d..b7797d6 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -65,7 +65,7 @@ generate_div(MqProfiles *profiles, gchar *id) mq_html_container("span", NULL, name, NULL), mq_html_input_text(name_str, NULL, name), mq_html_submit(default_str, "Make Default", - id && mq_profiles_is_default(profiles, id)), + !id || 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), -- cgit v0.9.1