mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Download Manager: Save last path only when not empty
This commit is contained in:
parent
6280d34e70
commit
5ba652afa9
@ -230,9 +230,11 @@ 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);
|
||||||
|
if (!downloadPath.isEmpty()) {
|
||||||
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
|
m_lastDownloadPath = QFileInfo(downloadPath).absolutePath();
|
||||||
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
|
Settings().setValue(QSL("lastDownloadPath"), m_lastDownloadPath);
|
||||||
m_lastDownloadOption = SaveFile;
|
m_lastDownloadOption = SaveFile;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3: // External manager
|
case 3: // External manager
|
||||||
|
Loading…
Reference in New Issue
Block a user