summaryrefslogtreecommitdiffstats
path: root/src/schemes/about
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-11 10:55:39 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-11 10:55:39 (EST)
commit8296eb1013e11742ad8ae08385f96d7ecede8b3c (patch)
tree44c1ae20f09bafee25423ffa0d4b9c8974fdbce9 /src/schemes/about
parent823fab41a48e38cd74c5bd317d8087dc7b283a43 (diff)
downloadmarquee-8296eb1013e11742ad8ae08385f96d7ecede8b3c.zip
marquee-8296eb1013e11742ad8ae08385f96d7ecede8b3c.tar.gz
marquee-8296eb1013e11742ad8ae08385f96d7ecede8b3c.tar.bz2
about:profiles: Disable "Delete" button on current profile
Diffstat (limited to 'src/schemes/about')
-rw-r--r--src/schemes/about/profiles.c2
1 files changed, 1 insertions, 1 deletions
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);