Correctly handle changing save path of torrent w/o metadata

PR #19829.
Closes #19824.
This commit is contained in:
Vladimir Golovnev 2023-11-01 09:22:32 +03:00 committed by Vladimir Golovnev (Glassez)
parent b284d40430
commit a14b50e48c
No known key found for this signature in database
GPG key ID: 52A2C7DEE2DFA6F7

View file

@ -1811,6 +1811,7 @@ void TorrentImpl::moveStorage(const Path &newPath, const MoveStorageContext cont
{ {
if (!hasMetadata()) if (!hasMetadata())
{ {
m_savePath = newPath;
m_session->handleTorrentSavePathChanged(this); m_session->handleTorrentSavePathChanged(this);
return; return;
} }