Consider explicitly specified parameters when resolving optional ones

PR #18955.
Closes #18951.
This commit is contained in:
Vladimir Golovnev
2023-05-11 09:09:57 +03:00
committed by GitHub
parent 58ae98026b
commit c10f1f0ad2
3 changed files with 45 additions and 39 deletions

View File

@@ -860,6 +860,16 @@ void AddNewTorrentDialog::accept()
m_torrentParams.downloadPath = downloadPath;
updatePathHistory(KEY_DOWNLOADPATHHISTORY, downloadPath, savePathHistoryLength());
}
else
{
m_torrentParams.downloadPath = Path();
}
}
else
{
m_torrentParams.savePath = Path();
m_torrentParams.downloadPath = Path();
m_torrentParams.useDownloadPath = std::nullopt;
}
setEnabled(!m_ui->checkBoxNeverShow->isChecked());