From 494e2b51df9026dee9bbfee8a9d02f99c25bb0bb Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Mon, 12 Aug 2013 18:32:42 +0000 Subject: [PATCH] Correctly set 'guessed' field of Song --- models/musiclibraryitemroot.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/models/musiclibraryitemroot.cpp b/models/musiclibraryitemroot.cpp index 59add7847..a215ee27c 100644 --- a/models/musiclibraryitemroot.cpp +++ b/models/musiclibraryitemroot.cpp @@ -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);