mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-26 14:34:30 +00:00
Merge pull request #11494 from thalieht/allowrecheck
Reallow to force recheck torrents that aren't fully started
This commit is contained in:
commit
76a3f57996
@ -1399,21 +1399,22 @@ void TorrentHandle::forceDHTAnnounce()
|
||||
|
||||
void TorrentHandle::forceRecheck()
|
||||
{
|
||||
if (m_startupState != Started) return;
|
||||
if (!hasMetadata()) return;
|
||||
|
||||
m_nativeHandle.force_recheck();
|
||||
m_unchecked = false;
|
||||
|
||||
if (isPaused()) {
|
||||
if ((m_startupState != Started) || isPaused()) {
|
||||
#if (LIBTORRENT_VERSION_NUM < 10200)
|
||||
m_nativeHandle.stop_when_ready(true);
|
||||
#else
|
||||
m_nativeHandle.set_flags(lt::torrent_flags::stop_when_ready);
|
||||
#endif
|
||||
setAutoManaged(true);
|
||||
m_pauseWhenReady = true;
|
||||
}
|
||||
|
||||
if ((m_startupState == Started) && isPaused())
|
||||
m_pauseWhenReady = true;
|
||||
}
|
||||
|
||||
void TorrentHandle::setSequentialDownload(const bool enable)
|
||||
|
Loading…
x
Reference in New Issue
Block a user