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

@@ -409,19 +409,6 @@ int TorrentInfo::fileIndex(const QString &fileName) const
return -1;
}
QString TorrentInfo::rootFolder() const
{
if (!isValid())
return {};
return Utils::Fs::findRootFolder(filePaths());
}
bool TorrentInfo::hasRootFolder() const
{
return !rootFolder().isEmpty();
}
TorrentContentLayout TorrentInfo::contentLayout() const
{
if (!isValid())