1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +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; break;
case 2: // Save 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()) { if (!downloadPath.isEmpty()) {
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath(); m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath); Settings().setValue(QSL("DownloadManager/lastDownloadPath"), m_lastDownloadPath);
m_lastDownloadOption = SaveFile; m_lastDownloadOption = SaveFile;
} }
break; break;