mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 13:23:34 -07: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:
parent
eeea69d4c1
commit
487103d58f
1 changed files with 4 additions and 1 deletions
|
@ -3673,8 +3673,11 @@ void Session::handleTorrentChecked(TorrentHandle *const torrent)
|
||||||
|
|
||||||
void Session::handleTorrentFinished(TorrentHandle *const torrent)
|
void Session::handleTorrentFinished(TorrentHandle *const torrent)
|
||||||
{
|
{
|
||||||
if (!torrent->hasError() && !torrent->hasMissingFiles())
|
if (!torrent->hasError() && !torrent->hasMissingFiles()) {
|
||||||
saveTorrentResumeData(torrent);
|
saveTorrentResumeData(torrent);
|
||||||
|
if (isQueueingSystemEnabled())
|
||||||
|
handleTorrentsPrioritiesChanged();
|
||||||
|
}
|
||||||
emit torrentFinished(torrent);
|
emit torrentFinished(torrent);
|
||||||
|
|
||||||
qDebug("Checking if the torrent contains torrent files to download");
|
qDebug("Checking if the torrent contains torrent files to download");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue