mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-07 05:31:25 -07:00
Revamp content layout handling
Apply content layout only if desired file names aren't provided. Remove helpers with confusing signatures. Don't remove root folder twice. PR #16724. Closes #16259.
This commit is contained in:
parent
eecd221d40
commit
df2d449f9b
13 changed files with 93 additions and 103 deletions
|
@ -181,6 +181,11 @@ void Path::removeExtension()
|
|||
m_pathStr.chop(extension().size());
|
||||
}
|
||||
|
||||
Path Path::removedExtension() const
|
||||
{
|
||||
return createUnchecked(m_pathStr.chopped(extension().size()));
|
||||
}
|
||||
|
||||
void Path::removeExtension(const QString &ext)
|
||||
{
|
||||
if (hasExtension(ext))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue