mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-14 10:37:06 -07:00
Save the new save path first in the history. Closes #2382.
This commit is contained in:
parent
38455af791
commit
2b24fe09c5
1 changed files with 2 additions and 2 deletions
|
@ -262,10 +262,10 @@ void AddNewTorrentDialog::saveSavePathHistory() const
|
|||
history_dirs << QDir(dir);
|
||||
if (!history_dirs.contains(selected_save_path)) {
|
||||
// Add save path to history
|
||||
history << selected_save_path.absolutePath();
|
||||
history.push_front(selected_save_path.absolutePath());
|
||||
// Limit list size
|
||||
if (history.size() > 8)
|
||||
history.removeFirst();
|
||||
history.pop_back();
|
||||
// Save history
|
||||
pref->setAddNewTorrentDialogPathHistory(history);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue