Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2016-12-16 13:12:33 +0300
committerGhostkeeper <rubend@tutanota.com>2016-12-16 13:12:33 +0300
commit0ca157518e5f14838114e93d67cfb2a13b03f5d5 (patch)
treecb11c7b46fe15f8bc2f650b6df16fb09d4c2958f /resources
parent4fdaf734fced17e365f50ac5d56653e577a3bb2e (diff)
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.
Diffstat (limited to 'resources')
-rw-r--r--resources/qml/Preferences/MaterialsPage.qml1
1 files changed, 1 insertions, 0 deletions
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 <filename>%1</filename>").arg(fileUrl)
+ currentItem = base.model.getItem(base.objectList.currentIndex)
}
else if(result.status == "duplicate")
{