From 0ca157518e5f14838114e93d67cfb2a13b03f5d5 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 16 Dec 2016 11:12:33 +0100 Subject: [PATCH] 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. --- resources/qml/Preferences/MaterialsPage.qml | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/qml/Preferences/MaterialsPage.qml b/resources/qml/Preferences/MaterialsPage.qml index 70e3780707..264bc182e6 100644 --- a/resources/qml/Preferences/MaterialsPage.qml +++ b/resources/qml/Preferences/MaterialsPage.qml @@ -278,6 +278,7 @@ UM.ManagementPage { messageDialog.icon = StandardIcon.Information messageDialog.text = catalog.i18nc("@info:status", "Successfully imported material %1").arg(fileUrl) + currentItem = base.model.getItem(base.objectList.currentIndex) } else if(result.status == "duplicate") {