Support more CUE filenames

Fixes #835
This commit is contained in:
Jonas Kvinge
2021-11-27 20:28:00 +01:00
parent a97dbab2ae
commit 8f49d1591f
5 changed files with 41 additions and 19 deletions

View File

@@ -300,7 +300,7 @@ SongLoader::Result SongLoader::LoadLocalAsync(const QString &filename) {
}
// Check if it's a CUE file
QString matching_cue = filename.section('.', 0, -2) + ".cue";
QString matching_cue = CueParser::FindCueFilename(filename);
if (QFile::exists(matching_cue)) {
// It's a CUE - create virtual tracks
QFile cue(matching_cue);