WPL Parser: Return invalid entries.

This commit is contained in:
James D. Smith 2022-03-27 20:26:57 -06:00
parent f9745722a0
commit 8ff27d7ced
1 changed files with 1 additions and 4 deletions

View File

@ -55,10 +55,7 @@ void WplParser::ParseSeq(const QDir& dir, QXmlStreamReader* reader,
if (name == "media") {
QStringRef src = reader->attributes().value("src");
if (!src.isEmpty()) {
Song song = LoadSong(src.toString(), 0, dir);
if (song.is_valid()) {
songs->append(song);
}
songs->append(LoadSong(src.toString(), 0, dir));
}
} else {
Utilities::ConsumeCurrentElement(reader);