mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
fix default save path bug
This commit is contained in:
parent
9ebc115719
commit
4f17364305
1 changed files with 3 additions and 1 deletions
|
@ -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());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue