Use complete basename in PathUtil::cleanName instead of basename (#7934)

Use `completeBaseName()` in `PathUtill::cleanName` instead of the `baseName()`. Needed for handling filenames with periods correctly.
This commit is contained in:
Sotonye Atemie
2025-06-06 16:55:26 -04:00
committed by GitHub
parent 889a2f8aac
commit 3a18276136

View File

@@ -115,9 +115,9 @@ namespace lmms::PathUtil
return path.mid( basePrefix(baseLookup(path)).length() );
}
QString cleanName(const QString & path)
QString cleanName(const QString& path)
{
return stripPrefix(QFileInfo(path).baseName());
return stripPrefix(QFileInfo(path).completeBaseName());
}