From d36f0536e8202212719b419a8093a2511e16b0f8 Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 12 Dec 2013 15:41:55 +0100 Subject: [PATCH] Fix tautological comparison. (cherry picked from commit 09eeeaab4e5b80628d19ede0586be9ad00be2328) --- src/playlistparsers/plsparser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/playlistparsers/plsparser.cpp b/src/playlistparsers/plsparser.cpp index e45f4165e..0c105a89e 100644 --- a/src/playlistparsers/plsparser.cpp +++ b/src/playlistparsers/plsparser.cpp @@ -46,7 +46,7 @@ SongList PLSParser::Load(QIODevice *device, const QString& playlist_path, const // Use the title and length we've already loaded if any if (!songs[n].title().isEmpty()) song.set_title(songs[n].title()); - if (!songs[n].length_nanosec() != -1) + if (songs[n].length_nanosec() != -1) song.set_length_nanosec(songs[n].length_nanosec()); songs[n] = song;