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

Download Manager: Fix storing last download path

This commit is contained in:
David Rosca 2016-05-27 20:20:08 +02:00
parent d1f266cc49
commit 6280d34e70

View File

@ -230,6 +230,8 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
case 2: // Save
downloadPath = QFileDialog::getSaveFileName(mApp->activeWindow(), tr("Save file as..."), m_lastDownloadPath + fileName);
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
m_lastDownloadOption = SaveFile;
break;