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
This commit is contained in:
Arjen Hiemstra 2015-10-15 09:42:52 +02:00
parent e42ffb23ca
commit 0b9047f6ca

View file

@ -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())
}