Browse Source

Force recheck multiple torrents one by one

Closes #9120.
adaptive-webui-19844
Vladimir Golovnev (Glassez) 6 years ago
parent
commit
61925f74fd
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 7
      src/base/bittorrent/torrenthandle.cpp
  2. 2
      src/base/bittorrent/torrenthandle.h

7
src/base/bittorrent/torrenthandle.cpp

@ -1225,7 +1225,7 @@ void TorrentHandle::forceRecheck() @@ -1225,7 +1225,7 @@ void TorrentHandle::forceRecheck()
if (isPaused()) {
m_nativeHandle.stop_when_ready(true);
resume_impl(true, true);
resume_impl(false);
}
}
@ -1304,10 +1304,10 @@ void TorrentHandle::pause() @@ -1304,10 +1304,10 @@ void TorrentHandle::pause()
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())
m_nativeHandle.clear_error();
@ -1318,7 +1318,6 @@ void TorrentHandle::resume_impl(bool forced, bool uploadMode) @@ -1318,7 +1318,6 @@ void TorrentHandle::resume_impl(bool forced, bool uploadMode)
}
m_nativeHandle.auto_managed(!forced);
m_nativeHandle.set_upload_mode(uploadMode);
m_nativeHandle.resume();
}

2
src/base/bittorrent/torrenthandle.h

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

Loading…
Cancel
Save