Browse Source

Merge pull request #5746 from erikssm/master

fix default save path bug
adaptive-webui-19844
sledgehammer999 8 years ago committed by GitHub
parent
commit
7b04dd4106
  1. 4
      src/gui/addnewtorrentdialog.cpp

4
src/gui/addnewtorrentdialog.cpp

@ -645,8 +645,10 @@ void AddNewTorrentDialog::accept() @@ -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.
params.savePath = savePath;
saveSavePathHistory();
if (ui->defaultSavePathCheckBox->isChecked())
if (ui->defaultSavePathCheckBox->isChecked()) {
settings()->storeValue(KEY_DEFAULTSAVEPATH, savePath);
BitTorrent::Session::instance()->setDefaultSavePath(savePath);
}
}
setEnabled(!ui->never_show_cb->isChecked());

Loading…
Cancel
Save