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 committed by Vladimir Golovnev
commit 88114b4588

View file

@ -2081,6 +2081,7 @@ void TorrentImpl::adjustStorageLocation()
const bool isFinished = isSeed() || m_hasSeedStatus;
const QDir targetDir {((isFinished || downloadPath.isEmpty()) ? savePath() : downloadPath)};
if ((targetDir != QDir(actualStorageLocation())) || isMoveInProgress())
moveStorage(targetDir.absolutePath(), MoveStorageMode::Overwrite);
}