Correctly track the root folder name change

This commit is contained in:
Vladimir Golovnev (Glassez)
2022-01-09 16:00:59 +03:00
committed by Vladimir Golovnev
parent 4cfccc54ea
commit e468f004f4
4 changed files with 13 additions and 29 deletions

View File

@@ -444,7 +444,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 {};