diff --git a/src/lib/downloads/downloadmanager.cpp b/src/lib/downloads/downloadmanager.cpp index 6e9d900ba..c362687dc 100644 --- a/src/lib/downloads/downloadmanager.cpp +++ b/src/lib/downloads/downloadmanager.cpp @@ -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;