mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Reallow to force recheck torrents that aren't fully started
This commit is contained in:
parent
30ca4e6986
commit
4ffc0cff12
1 changed files with 4 additions and 3 deletions
|
@ -1399,21 +1399,22 @@ void TorrentHandle::forceDHTAnnounce()
|
||||||
|
|
||||||
void TorrentHandle::forceRecheck()
|
void TorrentHandle::forceRecheck()
|
||||||
{
|
{
|
||||||
if (m_startupState != Started) return;
|
|
||||||
if (!hasMetadata()) return;
|
if (!hasMetadata()) return;
|
||||||
|
|
||||||
m_nativeHandle.force_recheck();
|
m_nativeHandle.force_recheck();
|
||||||
m_unchecked = false;
|
m_unchecked = false;
|
||||||
|
|
||||||
if (isPaused()) {
|
if ((m_startupState != Started) || isPaused()) {
|
||||||
#if (LIBTORRENT_VERSION_NUM < 10200)
|
#if (LIBTORRENT_VERSION_NUM < 10200)
|
||||||
m_nativeHandle.stop_when_ready(true);
|
m_nativeHandle.stop_when_ready(true);
|
||||||
#else
|
#else
|
||||||
m_nativeHandle.set_flags(lt::torrent_flags::stop_when_ready);
|
m_nativeHandle.set_flags(lt::torrent_flags::stop_when_ready);
|
||||||
#endif
|
#endif
|
||||||
setAutoManaged(true);
|
setAutoManaged(true);
|
||||||
m_pauseWhenReady = true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ((m_startupState == Started) && isPaused())
|
||||||
|
m_pauseWhenReady = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void TorrentHandle::setSequentialDownload(const bool enable)
|
void TorrentHandle::setSequentialDownload(const bool enable)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue