mirror of
https://invent.kde.org/network/falkon.git
synced 2024-09-22 02:02:10 +02:00
Download Manager: Fix storing last download path
This commit is contained in:
parent
d1f266cc49
commit
6280d34e70
|
@ -230,6 +230,8 @@ void DownloadManager::download(QWebEngineDownloadItem *downloadItem)
|
||||||
|
|
||||||
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 + fileName);
|
||||||
|
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
|
||||||
|
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
|
||||||
m_lastDownloadOption = SaveFile;
|
m_lastDownloadOption = SaveFile;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user