mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Explicitly set "added time" when adding new torrent
Don't overwrite "added time" with possibly incorrect value. Explicitly set "added time" when adding new torrent. PR #15644.
This commit is contained in:
committed by
GitHub
parent
8a44c1f6d5
commit
cc61ad01b6
@@ -1804,8 +1804,6 @@ void TorrentImpl::prepareResumeData(const lt::add_torrent_params ¶ms)
|
||||
m_ltAddTorrentParams = params;
|
||||
}
|
||||
|
||||
m_ltAddTorrentParams.added_time = addedTime().toSecsSinceEpoch();
|
||||
|
||||
// We shouldn't save upload_mode flag to allow torrent operate normally on next run
|
||||
m_ltAddTorrentParams.flags &= ~lt::torrent_flags::upload_mode;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user