1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-02-04 10:54:35 +00:00

Save torrents priorities on torrent finished

Save fastresumes for all torrents that shifted in the queue when a torrent finished.
This commit is contained in:
thalieht 2018-08-24 20:46:26 +03:00
parent 95b02bbb2e
commit ec9120adf0

View File

@ -3673,8 +3673,11 @@ void Session::handleTorrentChecked(TorrentHandle *const torrent)
void Session::handleTorrentFinished(TorrentHandle *const torrent)
{
if (!torrent->hasError() && !torrent->hasMissingFiles())
if (!torrent->hasError() && !torrent->hasMissingFiles()) {
saveTorrentResumeData(torrent);
if (isQueueingSystemEnabled())
handleTorrentsPrioritiesChanged();
}
emit torrentFinished(torrent);
qDebug("Checking if the torrent contains torrent files to download");