From 905bd10efe26523d72a618430f868fcf20f8c870 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 10 Sep 2017 17:01:52 +1000 Subject: [PATCH] use documents instead of desktop as default location have observed users doing a collection export to their desktop, then thinking that double clicking the collection file was the way to start Anki in the future --- aqt/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aqt/utils.py b/aqt/utils.py index 3a6fe4904..2fdf8954d 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -280,8 +280,8 @@ def getSaveFile(parent, title, dir_description, key, ext, fname=None): variable. The file dialog will default to open with FNAME.""" config_key = dir_description + 'Directory' - desktopPath = QStandardPaths.writableLocation(QStandardPaths.DesktopLocation) - base = aqt.mw.pm.profile.get(config_key, desktopPath) + defaultPath = QStandardPaths.writableLocation(QStandardPaths.DocumentsLocation) + base = aqt.mw.pm.profile.get(config_key, defaultPath) path = os.path.join(base, fname) file = QFileDialog.getSaveFileName( parent, title, path, "{0} (*{1})".format(key, ext),