Commit eafb3507 authored by Nate Graham's avatar Nate Graham 🔩

[Activities KCM] Disable delete button when there's only one activity

BUG: 397887
FIXED-IN; 5.12.8
parent 9cdfe259
......@@ -157,6 +157,9 @@ Item {
onClicked: ActivitySettings.deleteActivity(model.id);
visible: ActivitySettings.newActivityAuthorized
// Disable the button when there's only one activity
enabled: activitiesList.count > 1
}
visible: !dialogDeleteLoader.itemVisible
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment