|
|
@ -1491,14 +1491,20 @@ void TorrentHandle::handleTorrentFinishedAlert(libtorrent::torrent_finished_aler |
|
|
|
m_hasSeedStatus = true; |
|
|
|
m_hasSeedStatus = true; |
|
|
|
|
|
|
|
|
|
|
|
adjustActualSavePath(); |
|
|
|
adjustActualSavePath(); |
|
|
|
if (Preferences::instance()->recheckTorrentsOnCompletion()) |
|
|
|
appendExtensionsToIncompleteFiles(); |
|
|
|
forceRecheck(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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)); |
|
|
|
m_moveFinishedTriggers.append(boost::bind(&Session::handleTorrentFinished, m_session, this)); |
|
|
|
else |
|
|
|
} |
|
|
|
|
|
|
|
else { |
|
|
|
|
|
|
|
if (recheckTorrentsOnCompletion) |
|
|
|
|
|
|
|
forceRecheck(); |
|
|
|
m_session->handleTorrentFinished(this); |
|
|
|
m_session->handleTorrentFinished(this); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void TorrentHandle::handleTorrentPausedAlert(libtorrent::torrent_paused_alert *p) |
|
|
|
void TorrentHandle::handleTorrentPausedAlert(libtorrent::torrent_paused_alert *p) |
|
|
|
{ |
|
|
|
{ |
|
|
|