From 4a20a1660ea39ce553c4309fe1fedda9f6f4b9dd Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Wed, 1 Nov 2023 09:22:32 +0300 Subject: [PATCH] Correctly handle changing save path of torrent w/o metadata PR #19829. Closes #19824. --- src/base/bittorrent/torrentimpl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/base/bittorrent/torrentimpl.cpp b/src/base/bittorrent/torrentimpl.cpp index f9a7192fb..e954185ae 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -1866,6 +1866,7 @@ void TorrentImpl::moveStorage(const Path &newPath, const MoveStorageContext cont { if (!hasMetadata()) { + m_savePath = newPath; m_session->handleTorrentSavePathChanged(this); return; }