From a14b50e48cbc5d7b7aa186b8f79a519fc244aaa5 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 f11256557..7cab602d7 100644 --- a/src/base/bittorrent/torrentimpl.cpp +++ b/src/base/bittorrent/torrentimpl.cpp @@ -1811,6 +1811,7 @@ void TorrentImpl::moveStorage(const Path &newPath, const MoveStorageContext cont { if (!hasMetadata()) { + m_savePath = newPath; m_session->handleTorrentSavePathChanged(this); return; }