Browse Source

Update the torrent's download path field when changing category

In torrent options dialog while in Automatic Management Mode.
PR #16026.
adaptive-webui-19844
thalieht 3 years ago committed by GitHub
parent
commit
7c37c5c06f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      src/gui/torrentoptionsdialog.cpp

3
src/gui/torrentoptionsdialog.cpp

@ -519,6 +519,9 @@ void TorrentOptionsDialog::handleCategoryChanged(const int index) @@ -519,6 +519,9 @@ void TorrentOptionsDialog::handleCategoryChanged(const int index)
{
const QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->comboCategory->currentText());
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…
Cancel
Save