mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 12:18:05 -06:00
Fix incorrect save path when torrent is added from watched folder
PR #23656. Closes #23302.
This commit is contained in:
committed by
GitHub
parent
ae7cc7445b
commit
0bba3f342e
@@ -434,9 +434,9 @@ void TorrentFilesWatcher::Worker::processFolder(const Path &path, const Path &wa
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!m_failedTorrents.value(path).contains(filePath))
|
||||
if (!m_failedTorrents.value(watchedFolderPath).contains(filePath))
|
||||
{
|
||||
m_failedTorrents[path][filePath] = 0;
|
||||
m_failedTorrents[watchedFolderPath][filePath] = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -471,7 +471,7 @@ void TorrentFilesWatcher::Worker::processFailedTorrents()
|
||||
BitTorrent::AddTorrentParams addTorrentParams = options.addTorrentParams;
|
||||
if (torrentPath != watchedFolderPath)
|
||||
{
|
||||
const Path subdirPath = watchedFolderPath.relativePathOf(torrentPath);
|
||||
const Path subdirPath = watchedFolderPath.relativePathOf(torrentPath).parentPath();
|
||||
const bool useAutoTMM = addTorrentParams.useAutoTMM.value_or(!BitTorrent::Session::instance()->isAutoTMMDisabledByDefault());
|
||||
if (useAutoTMM)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user