From 307896cb41be262d55c0a70d1c5cf9bf76b89fcc Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 1 Feb 2017 09:48:06 +0100 Subject: [PATCH] Fix converting URL to local path in setDefaultPath It is a method, not a static function. 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 9fcaf58698..df3f44c14f 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, QUrl.toLocalFile(default_path)) + Preferences.getInstance().setValue("local_file/%s" % key, QUrl(default_path).toLocalFile()) ## Handle loading of all plugin types (and the backend explicitly) # \sa PluginRegistery