From faf98e40f865e29bf559350e79a48ec49c63e8e4 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 4 Oct 2016 10:46:13 +0200 Subject: [PATCH] Inherit button now correctly removes values if needed for multi extrusion machines CURA-2374 --- resources/qml/Settings/SettingItem.qml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/qml/Settings/SettingItem.qml b/resources/qml/Settings/SettingItem.qml index 0d26ecc760..0c7dec0784 100644 --- a/resources/qml/Settings/SettingItem.qml +++ b/resources/qml/Settings/SettingItem.qml @@ -217,10 +217,9 @@ Item { break; } } - - if(last_entry == 4 && base.stackLevel == 0 && base.stackLevels.length == 2) + if((last_entry == 4 || last_entry == 11) && base.stackLevel == 0 && base.stackLevels.length == 2) { - // Special case of the inherit reset. If only the definition (4th container) and the first + // Special case of the inherit reset. If only the definition (4th or 11th) container) and the first // entry (user container) are set, we can simply remove the container. propertyProvider.removeFromContainer(0) }