From 48fff3714372acdddf460d7a666244fbbad613cb Mon Sep 17 00:00:00 2001 From: Medvedishce <58903777+Medvedishce@users.noreply.github.com> Date: Wed, 18 Dec 2019 13:49:43 +0300 Subject: [PATCH] Update free disk space label on Category change in Auto Mode Closes #8772. This will fix issue that "Free space on disk:" label in Add New Torrent dialog not updated on Category change when Torrent Management Mode is on Auto mode. --- src/gui/addnewtorrentdialog.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index 8c924ce1c..55fa6f98c 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -421,6 +421,7 @@ void AddNewTorrentDialog::categoryChanged(int index) if (m_ui->comboTTM->currentIndex() == 1) { QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText()); m_ui->savePath->setSelectedPath(Utils::Fs::toNativePath(savePath)); + updateDiskSpaceLabel(); } } @@ -682,6 +683,7 @@ void AddNewTorrentDialog::TMMChanged(int index) m_ui->savePath->clear(); QString savePath = BitTorrent::Session::instance()->categorySavePath(m_ui->categoryComboBox->currentText()); m_ui->savePath->addItem(savePath); + updateDiskSpaceLabel(); } }