From 0b9047f6ca4e73ce3ea157b000251cbf16f7c4a5 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Thu, 15 Oct 2015 09:42:52 +0200 Subject: [PATCH] Properly set the current folder on file open This makes sure the next time the file dialog is opened the last folder used is openend. CURA-246 #Start-Review --- resources/qml/Cura.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index 25b6cf534c..8d42bce562 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -636,6 +636,11 @@ UM.MainWindow onAccepted: { + //Because several implementations of the file dialog only update the folder + //when it is explicitly set. + var f = folder; + folder = f; + UM.MeshFileHandler.readLocalFile(fileUrl) openDialog.sendMeshName(fileUrl.toString()) }