Attempt at fixing saving of load location on Linux

Hope this also works on the Qt version used by our build system...
This commit is contained in:
Ghostkeeper 2019-07-19 12:37:51 +02:00
parent 4b8274d7cb
commit 7aec564848
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -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