1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

DownloadManager: Set default download path to Downloads folder

BUG: 391300
FIXED-IN: 3.0.1
This commit is contained in:
David Rosca 2018-03-31 10:26:04 +02:00
parent 525b929d38
commit 94e1421d30
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -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();