Move torrent immediately when "save path" is changed

This commit is contained in:
Vladimir Golovnev (Glassez)
2022-01-10 08:18:34 +03:00
committed by Vladimir Golovnev
parent 88114b4588
commit 86e8d848f6

View File

@@ -412,7 +412,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);
}