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. 3
      src/base/bittorrent/torrentimpl.cpp

3
src/base/bittorrent/torrentimpl.cpp

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

Loading…
Cancel
Save