mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 22:03:27 -07:00
Don't try to move storage into its current location
This commit is contained in:
parent
e468f004f4
commit
88114b4588
1 changed files with 2 additions and 1 deletions
|
@ -2081,6 +2081,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue