1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 04:11:16 +00:00

fix default save path bug

This commit is contained in:
erikssm 2016-09-16 21:04:48 +03:00
parent 3ea81be2cc
commit d2e911c3ea

View File

@ -645,8 +645,10 @@ void AddNewTorrentDialog::accept()
if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode. if (ui->comboTTM->currentIndex() != 1) { // 0 is Manual mode and 1 is Automatic mode. Handle all non 1 values as manual mode.
params.savePath = savePath; params.savePath = savePath;
saveSavePathHistory(); saveSavePathHistory();
if (ui->defaultSavePathCheckBox->isChecked()) if (ui->defaultSavePathCheckBox->isChecked()) {
settings()->storeValue(KEY_DEFAULTSAVEPATH, savePath); settings()->storeValue(KEY_DEFAULTSAVEPATH, savePath);
BitTorrent::Session::instance()->setDefaultSavePath(savePath);
}
} }
setEnabled(!ui->never_show_cb->isChecked()); setEnabled(!ui->never_show_cb->isChecked());