From d2e911c3eaf90d0e3ecdeb68cc86f009893cc71a Mon Sep 17 00:00:00 2001 From: erikssm Date: Fri, 16 Sep 2016 21:04:48 +0300 Subject: [PATCH] fix default save path bug --- src/gui/addnewtorrentdialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/addnewtorrentdialog.cpp b/src/gui/addnewtorrentdialog.cpp index f065fd961..a01fac943 100644 --- a/src/gui/addnewtorrentdialog.cpp +++ b/src/gui/addnewtorrentdialog.cpp @@ -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());