From 7aec564848ffb7f76fa0c5eaff4d4c9995d3d8df Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 19 Jul 2019 12:37:51 +0200 Subject: [PATCH] Attempt at fixing saving of load location on Linux Hope this also works on the Qt version used by our build system... --- resources/qml/Cura.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/resources/qml/Cura.qml b/resources/qml/Cura.qml index ffa6502563..4c143dcf0b 100644 --- a/resources/qml/Cura.qml +++ b/resources/qml/Cura.qml @@ -591,7 +591,12 @@ UM.MainWindow modality: Qt.WindowModal selectMultiple: true nameFilters: UM.MeshFileHandler.supportedReadFileTypes; - folder: CuraApplication.getDefaultPath("dialog_load_path") + folder: + { + //Because several implementations of the file dialog only update the folder when it is explicitly set. + folder = CuraApplication.getDefaultPath("dialog_load_path"); + return CuraApplication.getDefaultPath("dialog_load_path"); + } onAccepted: { // Because several implementations of the file dialog only update the folder