1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-03 05:25:52 +00:00

fix: mark torrent as changed when setting location (#6355)

This commit is contained in:
Yat Ho 2023-12-08 23:38:57 +08:00 committed by GitHub
parent 4506d20136
commit 7fa318c283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2245,6 +2245,7 @@ size_t tr_torrentFindFileToBuf(tr_torrent const* tor, tr_file_index_t file_num,
void tr_torrent::set_download_dir(std::string_view path, bool is_new_torrent)
{
download_dir_ = path;
mark_changed();
mark_edited();
set_dirty();
refresh_current_dir();