From 8296eb1013e11742ad8ae08385f96d7ecede8b3c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 11 Nov 2017 10:55:39 -0500 Subject: about:profiles: Disable "Delete" button on current profile --- diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index ede57c7..1fc59db 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -303,7 +303,7 @@ generate_div(MqProfiles *profiles, gchar *id) mq_html_submit(launch_str, "Launch", FALSE), mq_html_submit(default_str, "Make Default", !id || mq_profiles_is_default(profiles, id)), - mq_html_submit(delete_str, "Delete", FALSE), + mq_html_submit(delete_str, "Delete", is_current), mq_html_label(editing_str, "Edit", FALSE), mq_html_submit(save_str, "Save", FALSE), NULL); -- cgit v0.9.1