Browse Source

Don't try to move storage into its current location

adaptive-webui-19844
Vladimir Golovnev (Glassez) 3 years ago
parent
commit
52b54fe154
No known key found for this signature in database
GPG Key ID: 52A2C7DEE2DFA6F7
  1. 1
      src/base/bittorrent/torrentimpl.cpp

1
src/base/bittorrent/torrentimpl.cpp

@ -2074,6 +2074,7 @@ void TorrentImpl::adjustStorageLocation() @@ -2074,6 +2074,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);
}

Loading…
Cancel
Save