From 7c37c5c06f782ac4b7e4c86b1a5f5ec6884b54e0 Mon Sep 17 00:00:00 2001 From: thalieht Date: Thu, 13 Jan 2022 06:44:50 +0200 Subject: [PATCH] Update the torrent's download path field when changing category In torrent options dialog while in Automatic Management Mode. PR #16026. --- src/gui/torrentoptionsdialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/torrentoptionsdialog.cpp b/src/gui/torrentoptionsdialog.cpp index 60c0bc43d..259539e5b 100644 --- a/src/gui/torrentoptionsdialog.cpp +++ b/src/gui/torrentoptionsdialog.cpp @@ -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()); } }