Correctly track the root folder name change

PR #16004.
This commit is contained in:
Vladimir Golovnev
2022-01-11 07:24:24 +03:00
committed by GitHub
parent 2da39e2fbb
commit 84a8158aa2
4 changed files with 13 additions and 29 deletions

View File

@@ -443,7 +443,7 @@ QString TorrentImpl::rootPath() const
if (!hasMetadata())
return {};
const QString relativeRootPath = m_torrentInfo.rootFolder();
const QString relativeRootPath = Utils::Fs::findRootFolder(filePaths());
if (relativeRootPath.isEmpty())
return {};