mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-10-22 10:46:04 +03:00
Don't forget to resume "missing files" torrent when rechecking
PR #20747.
This commit is contained in:
parent
ddb0ff29e2
commit
ca71c186e0
1 changed files with 11 additions and 1 deletions
|
@ -1608,7 +1608,17 @@ void TorrentImpl::forceRecheck()
|
||||||
// an incorrect one during the interval until the cached state is updated in a regular way.
|
// an incorrect one during the interval until the cached state is updated in a regular way.
|
||||||
m_nativeStatus.state = lt::torrent_status::checking_resume_data;
|
m_nativeStatus.state = lt::torrent_status::checking_resume_data;
|
||||||
|
|
||||||
|
if (m_hasMissingFiles)
|
||||||
|
{
|
||||||
m_hasMissingFiles = false;
|
m_hasMissingFiles = false;
|
||||||
|
if (!isStopped())
|
||||||
|
{
|
||||||
|
setAutoManaged(m_operatingMode == TorrentOperatingMode::AutoManaged);
|
||||||
|
if (m_operatingMode == TorrentOperatingMode::Forced)
|
||||||
|
m_nativeHandle.resume();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_unchecked = false;
|
m_unchecked = false;
|
||||||
|
|
||||||
m_completedFiles.fill(false);
|
m_completedFiles.fill(false);
|
||||||
|
|
Loading…
Reference in a new issue