1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-03-10 12:21:12 +00:00

Reload "missing files" torrent instead of re-checking

This commit is contained in:
Vladimir Golovnev (Glassez) 2021-01-01 16:16:52 +03:00
parent 06105072f9
commit b2199202ab
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -1381,14 +1381,17 @@ void TorrentHandleImpl::resume(const TorrentOperatingMode mode)
if (hasError()) if (hasError())
m_nativeHandle.clear_error(); m_nativeHandle.clear_error();
m_operatingMode = mode;
if (m_hasMissingFiles) if (m_hasMissingFiles)
{ {
m_hasMissingFiles = false; m_hasMissingFiles = false;
m_nativeHandle.force_recheck(); m_isStopped = false;
reload();
updateStatus();
return;
} }
m_operatingMode = mode;
if (m_isStopped) if (m_isStopped)
{ {
// Torrent may have been temporarily resumed to perform checking files // Torrent may have been temporarily resumed to perform checking files