1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-11 15:27:54 +00:00

Don't try to move storage into its current location

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-01-09 21:14:49 +03:00
parent f44341a8e2
commit 52b54fe154
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7

View File

@ -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);
} }