Fix explicit Torrent Management Mode in Add New Torrent dialog. Closes #5602.

This commit is contained in:
sledgehammer999 2017-08-05 23:11:40 +03:00
parent 8214d25f9f
commit 6270433237
No known key found for this signature in database
GPG key ID: 6E4A2D025B7CC9A2
4 changed files with 13 additions and 3 deletions

View file

@ -624,11 +624,15 @@ void AddNewTorrentDialog::accept()
QString savePath = ui->savePath->selectedPath();
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
m_torrentParams.useAutoTMM = TriStateBool::False;
m_torrentParams.savePath = savePath;
saveSavePathHistory();
if (ui->defaultSavePathCheckBox->isChecked())
BitTorrent::Session::instance()->setDefaultSavePath(savePath);
}
else {
m_torrentParams.useAutoTMM = TriStateBool::True;
}
setEnabled(!ui->never_show_cb->isChecked());