From a0691cb6a0371711aa94a72b1d55f840a80299f0 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Fri, 27 May 2016 21:31:20 +0200 Subject: [PATCH] Fix actually saving the correct download path --- src/lib/downloads/downloadmanager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/downloads/downloadmanager.cpp b/src/lib/downloads/downloadmanager.cpp index f99baa246..3339b9ed8 100644 --- a/src/lib/downloads/downloadmanager.cpp +++ b/src/lib/downloads/downloadmanager.cpp @@ -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;