Force recheck multiple torrents one by one

Closes #9120.
This commit is contained in:
Vladimir Golovnev (Glassez) 2019-02-01 08:49:33 +03:00
parent 7b3fb2a35a
commit 1a9eadf8e6
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7
2 changed files with 4 additions and 5 deletions

View file

@ -1275,7 +1275,7 @@ void TorrentHandle::forceRecheck()
if (isPaused()) { if (isPaused()) {
m_nativeHandle.stop_when_ready(true); m_nativeHandle.stop_when_ready(true);
resume_impl(true, true); resume_impl(false);
} }
} }
@ -1354,10 +1354,10 @@ void TorrentHandle::pause()
void TorrentHandle::resume(bool forced) void TorrentHandle::resume(bool forced)
{ {
resume_impl(forced, false); resume_impl(forced);
} }
void TorrentHandle::resume_impl(bool forced, bool uploadMode) void TorrentHandle::resume_impl(bool forced)
{ {
if (hasError()) if (hasError())
m_nativeHandle.clear_error(); m_nativeHandle.clear_error();
@ -1368,7 +1368,6 @@ void TorrentHandle::resume_impl(bool forced, bool uploadMode)
} }
m_nativeHandle.auto_managed(!forced); m_nativeHandle.auto_managed(!forced);
m_nativeHandle.set_upload_mode(uploadMode);
m_nativeHandle.resume(); m_nativeHandle.resume();
} }

View file

@ -408,7 +408,7 @@ namespace BitTorrent
void handleMetadataReceivedAlert(const libtorrent::metadata_received_alert *p); void handleMetadataReceivedAlert(const libtorrent::metadata_received_alert *p);
void handleStatsAlert(const libtorrent::stats_alert *p); void handleStatsAlert(const libtorrent::stats_alert *p);
void resume_impl(bool forced, bool uploadMode); void resume_impl(bool forced);
bool isMoveInProgress() const; bool isMoveInProgress() const;
QString nativeActualSavePath() const; QString nativeActualSavePath() const;