From 011ac90a5226f1bbd6f2f4b2d0a7af3ee1d4719e Mon Sep 17 00:00:00 2001 From: Vladimir Golovnev Date: Mon, 28 Mar 2022 07:32:13 +0300 Subject: [PATCH] Correctly handle changing of temp save path PR #16753. --- src/base/bittorrent/session.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/base/bittorrent/session.cpp b/src/base/bittorrent/session.cpp index 6c7488256..1ae6e083d 100644 --- a/src/base/bittorrent/session.cpp +++ b/src/base/bittorrent/session.cpp @@ -2479,7 +2479,7 @@ void Session::setDownloadPath(const QString &path) { const QString baseDownloadPath = specialFolderLocation(SpecialFolder::Downloads) + QLatin1String("/temp"); const QString resolvedPath = (QDir::isAbsolutePath(path) ? path : Utils::Fs::resolvePath(path, baseDownloadPath)); - if (resolvedPath != m_downloadPath) + if (resolvedPath == m_downloadPath) return; if (isDisableAutoTMMWhenDefaultSavePathChanged())