Browse Source

Merge pull request #4438 from glassez/tmpfolder

Fix moving torrents to Temp after app restart. Closes #4434.
adaptive-webui-19844
sledgehammer999 9 years ago
parent
commit
bd85ce02da
  1. 7
      src/base/bittorrent/torrenthandle.cpp

7
src/base/bittorrent/torrenthandle.cpp

@ -1364,13 +1364,14 @@ void TorrentHandle::handleTorrentCheckedAlert(libtorrent::torrent_checked_alert @@ -1364,13 +1364,14 @@ void TorrentHandle::handleTorrentCheckedAlert(libtorrent::torrent_checked_alert
qDebug("%s have just finished checking", qPrintable(hash()));
updateStatus();
adjustActualSavePath();
if (progress() < 1.0 && wantedSize() > 0)
if ((progress() < 1.0) && (wantedSize() > 0))
m_hasSeedStatus = false;
else if (progress() == 1.0)
m_hasSeedStatus = true;
adjustActualSavePath();
if (m_pauseAfterRecheck) {
m_pauseAfterRecheck = false;
pause();
@ -1696,7 +1697,7 @@ bool TorrentHandle::isMoveInProgress() const @@ -1696,7 +1697,7 @@ bool TorrentHandle::isMoveInProgress() const
bool TorrentHandle::useTempPath() const
{
return !m_tempPathDisabled && m_session->isTempPathEnabled() && !isSeed();
return !m_tempPathDisabled && m_session->isTempPathEnabled() && !(isSeed() || m_hasSeedStatus);
}
void TorrentHandle::updateStatus()

Loading…
Cancel
Save