Set currentIndex to a more logical successor when deleting a material

This commit is contained in:
fieldOfView 2017-05-08 11:17:10 +02:00
parent 00f3cf409b
commit b4f56d10d7

View File

@ -272,6 +272,10 @@ UM.ManagementPage
{ {
Cura.ContainerManager.removeContainer(containers[i]) Cura.ContainerManager.removeContainer(containers[i])
} }
if(base.objectList.currentIndex > 0)
{
base.objectList.currentIndex--;
}
currentItem = base.model.getItem(base.objectList.currentIndex) // Refresh the current item. currentItem = base.model.getItem(base.objectList.currentIndex) // Refresh the current item.
} }
} }