Correctly set 'guessed' field of Song

This commit is contained in:
craig.p.drummond
2013-08-12 18:32:42 +00:00
parent 278e6c1154
commit 494e2b51df

View File

@@ -621,9 +621,7 @@ quint32 MusicLibraryItemRoot::fromXML(QXmlStreamReader &reader, const QDateTime
}
song.fillEmptyFields();
if (constTrueValue==attributes.value(constGuessedAttribute).toString()) {
song.guessed=true;
}
song.guessed=constTrueValue==attributes.value(constGuessedAttribute).toString();
albumItem->append(new MusicLibraryItemSong(song, albumItem));
if (song.genre!=lastGenre) {
albumItem->addGenre(song.genre);