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

@@ -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())