mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 06:01:33 -06:00
Fix rechecking after torrent is finished
This commit is contained in:
committed by
sledgehammer999
parent
e7cfd7a31d
commit
ab4a608342
@@ -1491,13 +1491,19 @@ void TorrentHandle::handleTorrentFinishedAlert(libtorrent::torrent_finished_aler
|
||||
m_hasSeedStatus = true;
|
||||
|
||||
adjustActualSavePath();
|
||||
if (Preferences::instance()->recheckTorrentsOnCompletion())
|
||||
forceRecheck();
|
||||
appendExtensionsToIncompleteFiles();
|
||||
|
||||
if (isMoveInProgress() || m_renameCount > 0)
|
||||
const bool recheckTorrentsOnCompletion = Preferences::instance()->recheckTorrentsOnCompletion();
|
||||
if (isMoveInProgress() || m_renameCount > 0) {
|
||||
if (recheckTorrentsOnCompletion)
|
||||
m_moveFinishedTriggers.append(boost::bind(&TorrentHandle::forceRecheck, this));
|
||||
m_moveFinishedTriggers.append(boost::bind(&Session::handleTorrentFinished, m_session, this));
|
||||
else
|
||||
}
|
||||
else {
|
||||
if (recheckTorrentsOnCompletion)
|
||||
forceRecheck();
|
||||
m_session->handleTorrentFinished(this);
|
||||
}
|
||||
}
|
||||
|
||||
void TorrentHandle::handleTorrentPausedAlert(libtorrent::torrent_paused_alert *p)
|
||||
|
||||
Reference in New Issue
Block a user