mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Consider explicitly specified parameters when resolving optional ones
PR #18955. Closes #18951.
This commit is contained in:
committed by
GitHub
parent
58ae98026b
commit
c10f1f0ad2
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user