Update current item when importing new material

Since we select the newly imported material, we need to update the current item so that the window on the right also gets updated.

Contributes to issue CURA-3138.
This commit is contained in:
Ghostkeeper 2016-12-16 11:12:33 +01:00
parent 4fdaf734fc
commit 0ca157518e
No known key found for this signature in database
GPG key ID: C5F96EE2BC0F7E75

View file

@ -278,6 +278,7 @@ UM.ManagementPage
{
messageDialog.icon = StandardIcon.Information
messageDialog.text = catalog.i18nc("@info:status", "Successfully imported material <filename>%1</filename>").arg(fileUrl)
currentItem = base.model.getItem(base.objectList.currentIndex)
}
else if(result.status == "duplicate")
{