|
|
@ -411,7 +411,7 @@ void TorrentImpl::setSavePath(const QString &path) |
|
|
|
m_session->handleTorrentNeedSaveResumeData(this); |
|
|
|
m_session->handleTorrentNeedSaveResumeData(this); |
|
|
|
|
|
|
|
|
|
|
|
const bool isFinished = isSeed() || m_hasSeedStatus; |
|
|
|
const bool isFinished = isSeed() || m_hasSeedStatus; |
|
|
|
if (isFinished) |
|
|
|
if (isFinished || downloadPath().isEmpty()) |
|
|
|
moveStorage(savePath(), MoveStorageMode::KeepExistingFiles); |
|
|
|
moveStorage(savePath(), MoveStorageMode::KeepExistingFiles); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -2074,6 +2074,7 @@ void TorrentImpl::adjustStorageLocation() |
|
|
|
const bool isFinished = isSeed() || m_hasSeedStatus; |
|
|
|
const bool isFinished = isSeed() || m_hasSeedStatus; |
|
|
|
const QDir targetDir {((isFinished || downloadPath.isEmpty()) ? savePath() : downloadPath)}; |
|
|
|
const QDir targetDir {((isFinished || downloadPath.isEmpty()) ? savePath() : downloadPath)}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ((targetDir != QDir(actualStorageLocation())) || isMoveInProgress()) |
|
|
|
moveStorage(targetDir.absolutePath(), MoveStorageMode::Overwrite); |
|
|
|
moveStorage(targetDir.absolutePath(), MoveStorageMode::Overwrite); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|