|
|
@ -133,7 +133,7 @@ AddTorrentData::AddTorrentData(const AddTorrentParams &in) |
|
|
|
, savePath(in.savePath) |
|
|
|
, savePath(in.savePath) |
|
|
|
, disableTempPath(in.disableTempPath) |
|
|
|
, disableTempPath(in.disableTempPath) |
|
|
|
, sequential(in.sequential) |
|
|
|
, sequential(in.sequential) |
|
|
|
, hasSeedStatus(false) |
|
|
|
, hasSeedStatus(in.skipChecking) // do not react on 'torrent_finished_alert' when skipping
|
|
|
|
, skipChecking(in.skipChecking) |
|
|
|
, skipChecking(in.skipChecking) |
|
|
|
, addForced(in.addForced) |
|
|
|
, addForced(in.addForced) |
|
|
|
, addPaused(in.addPaused) |
|
|
|
, addPaused(in.addPaused) |
|
|
@ -195,7 +195,7 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle |
|
|
|
, m_name(data.name) |
|
|
|
, m_name(data.name) |
|
|
|
, m_savePath(Utils::Fs::toNativePath(data.savePath)) |
|
|
|
, m_savePath(Utils::Fs::toNativePath(data.savePath)) |
|
|
|
, m_label(data.label) |
|
|
|
, m_label(data.label) |
|
|
|
, m_hasSeedStatus(data.resumed ? data.hasSeedStatus : false) |
|
|
|
, m_hasSeedStatus(data.hasSeedStatus) |
|
|
|
, m_ratioLimit(data.ratioLimit) |
|
|
|
, m_ratioLimit(data.ratioLimit) |
|
|
|
, m_tempPathDisabled(data.disableTempPath) |
|
|
|
, m_tempPathDisabled(data.disableTempPath) |
|
|
|
, m_hasMissingFiles(false) |
|
|
|
, m_hasMissingFiles(false) |
|
|
@ -1378,6 +1378,9 @@ void TorrentHandle::handleTorrentCheckedAlert(libtorrent::torrent_checked_alert |
|
|
|
updateStatus(); |
|
|
|
updateStatus(); |
|
|
|
adjustActualSavePath(); |
|
|
|
adjustActualSavePath(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (progress() < 1.0) |
|
|
|
|
|
|
|
m_hasSeedStatus = false; |
|
|
|
|
|
|
|
|
|
|
|
if (m_pauseAfterRecheck) { |
|
|
|
if (m_pauseAfterRecheck) { |
|
|
|
m_pauseAfterRecheck = false; |
|
|
|
m_pauseAfterRecheck = false; |
|
|
|
pause(); |
|
|
|
pause(); |
|
|
|