Fix material current item reset

CURA-6679
This commit is contained in:
Lipu Fei 2019-07-30 15:16:47 +02:00
parent 0c66fd82d4
commit 2ce567ccfe
2 changed files with 6 additions and 0 deletions

View file

@ -102,6 +102,7 @@ Item
}
}
}
base.currentItem = null
return false
}

View file

@ -58,6 +58,11 @@ Item
{
forceActiveFocus()
materialDetailsPanel.currentItem = currentItem
// CURA-6679 If the current item is gone after the model update, reset the current item to the active material.
if (currentItem == null)
{
resetExpandedActiveMaterial()
}
}
// Main layout