1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 02:36:34 +01:00

Fix actually saving the correct download path

This commit is contained in:
David Rosca 2016-05-27 21:31:20 +02:00
parent 5ba652afa9
commit a0691cb6a0

View File

@ -229,10 +229,10 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
break;
case 2: // Save
downloadPath = QFileDialog::getSaveFileName(mApp->activeWindow(), tr("Save file as..."), m_lastDownloadPath + fileName);
downloadPath = QFileDialog::getSaveFileName(mApp->activeWindow(), tr("Save file as..."), m_lastDownloadPath + QLatin1Char('/') + fileName);
if (!downloadPath.isEmpty()) {
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
Settings().setValue(QSL("DownloadManager/lastDownloadPath"), m_lastDownloadPath);
m_lastDownloadOption = SaveFile;
}
break;