It's no longer possible to remove a material that is in use

CURA-2168
This commit is contained in:
Jaime van Kessel 2016-08-24 14:48:20 +02:00
parent a177b61153
commit 17b34fb4e1
2 changed files with 10 additions and 1 deletions

View file

@ -104,7 +104,7 @@ UM.ManagementPage
{
text: catalog.i18nc("@action:button", "Remove");
iconName: "list-remove";
enabled: base.currentItem != null && !base.currentItem.readOnly
enabled: base.currentItem != null && !base.currentItem.readOnly && !Cura.ContainerManager.isContainerUsed(base.currentItem.id)
onClicked: confirmDialog.open()
},
Button