Loading files now uses home folder as default location

CURA-906
This commit is contained in:
Jaime van Kessel 2016-02-29 16:11:48 +01:00
parent 03b3c4c20a
commit 06afed5283
2 changed files with 5 additions and 1 deletions

View File

@ -129,6 +129,10 @@ class CuraApplication(QtApplication):
continue
self._recent_files.append(QUrl.fromLocalFile(f))
@pyqtSlot(result = QUrl)
def getDefaultSavePath(self):
return QUrl.fromLocalFile(os.path.expanduser("~/"))
## Handle loading of all plugin types (and the backend explicitly)
# \sa PluginRegistery

View File

@ -667,7 +667,7 @@ UM.MainWindow
//TODO: Support multiple file selection, workaround bug in KDE file dialog
//selectMultiple: true
nameFilters: UM.MeshFileHandler.supportedReadFileTypes;
folder: Printer.getDefaultSavePath()
onAccepted:
{
//Because several implementations of the file dialog only update the folder