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:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user