mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Update the torrent's download path field when changing category
In torrent options dialog while in Automatic Management Mode. PR #16026.
This commit is contained in:
parent
4d541ca969
commit
7c37c5c06f
1 changed files with 3 additions and 0 deletions
|
@ -519,6 +519,9 @@ void TorrentOptionsDialog::handleCategoryChanged(const int index)
|
||||||
{
|
{
|
||||||
const QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->comboCategory->currentText());
|
const QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->comboCategory->currentText());
|
||||||
m_ui->savePath->setSelectedPath(Utils::Fs::toNativePath(savePath));
|
m_ui->savePath->setSelectedPath(Utils::Fs::toNativePath(savePath));
|
||||||
|
const QString downloadPath = BitTorrent::Session::instance()->categoryDownloadPath(m_ui->comboCategory->currentText());
|
||||||
|
m_ui->downloadPath->setSelectedPath(Utils::Fs::toNativePath(downloadPath));
|
||||||
|
m_ui->checkUseDownloadPath->setChecked(!downloadPath.isEmpty());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue