mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Make a setter for defaultSave path in qbtsession and do some other optimizations to avoid potential pitfalls.
This commit is contained in:
parent
a50aa2d8e5
commit
3e979931d0
3 changed files with 13 additions and 7 deletions
|
@ -596,7 +596,6 @@ void AddNewTorrentDialog::on_buttonBox_accepted()
|
|||
pref.useAdditionDialog(!ui->never_show_cb->isChecked());
|
||||
if (ui->default_save_path_cb->isChecked()) {
|
||||
pref.setSavePath(ui->save_path_combo->itemData(ui->save_path_combo->currentIndex()).toString());
|
||||
pref.sync();
|
||||
QBtSession::instance()->configureSession();
|
||||
QBtSession::instance()->setDefaultSavePath(pref.getSavePath());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue