Move torrent immediately when "save path" is changed

This commit is contained in:
Vladimir Golovnev (Glassez) 2022-01-10 08:18:34 +03:00
parent 52b54fe154
commit fbc85bed64
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -411,7 +411,7 @@ void TorrentImpl::setSavePath(const QString &path)
m_session->handleTorrentNeedSaveResumeData(this);
const bool isFinished = isSeed() || m_hasSeedStatus;
if (isFinished)
if (isFinished || downloadPath().isEmpty())
moveStorage(savePath(), MoveStorageMode::KeepExistingFiles);
}