From 94e1421d3086ca031ccaf568dc2bb1224fc55cd0 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Sat, 31 Mar 2018 10:26:04 +0200 Subject: [PATCH] DownloadManager: Set default download path to Downloads folder BUG: 391300 FIXED-IN: 3.0.1 --- src/lib/downloads/downloadmanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/downloads/downloadmanager.cpp b/src/lib/downloads/downloadmanager.cpp index a00a61ed0..e27b78818 100644 --- a/src/lib/downloads/downloadmanager.cpp +++ b/src/lib/downloads/downloadmanager.cpp @@ -79,7 +79,7 @@ void DownloadManager::loadSettings() Settings settings; settings.beginGroup("DownloadManager"); m_downloadPath = settings.value("defaultDownloadPath", QString()).toString(); - m_lastDownloadPath = settings.value("lastDownloadPath", QDir::homePath().append(QLatin1Char('/'))).toString(); + m_lastDownloadPath = settings.value("lastDownloadPath", QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)).toString(); m_closeOnFinish = settings.value("CloseManagerOnFinish", false).toBool(); m_useNativeDialog = settings.value("useNativeDialog", DEFAULT_DOWNLOAD_USE_NATIVE_DIALOG).toBool();