From 1a4d71c3f8272160e660ee6ab6637bef34598f5a Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 31 Jan 2017 17:42:32 +0100 Subject: [PATCH] Save last-opened file path as local-file format It's stored in the format of '/home/user/Models/Basic' rather than 'file:///home/user/Models/Basic'. The QML FileDialog class expects the latter format though. Contributes to issue CURA-3297. --- cura/CuraApplication.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 561df90f8d..9fcaf58698 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -400,7 +400,7 @@ class CuraApplication(QtApplication): @pyqtSlot(str, str) def setDefaultPath(self, key, default_path): - Preferences.getInstance().setValue("local_file/%s" % key, default_path) + Preferences.getInstance().setValue("local_file/%s" % key, QUrl.toLocalFile(default_path)) ## Handle loading of all plugin types (and the backend explicitly) # \sa PluginRegistery