From 0e27e4fece2177f58fcd94e8bf64ad9b468e9cda Mon Sep 17 00:00:00 2001 From: craig Date: Wed, 18 Apr 2012 21:41:58 +0000 Subject: [PATCH] 'plchangesposid' sends all remaing IDs, so no need to check at end. Was causing a phatom, empty, song to appear in playqueue model. --- mpd/mpdconnection.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mpd/mpdconnection.cpp b/mpd/mpdconnection.cpp index 014f08c56..6c3cc5e59 100644 --- a/mpd/mpdconnection.cpp +++ b/mpd/mpdconnection.cpp @@ -566,7 +566,7 @@ void MPDConnection::playListChanges() QList changes=MPDParseUtils::parseChanges(response.data); if (!changes.isEmpty()) { bool first=true; - quint32 firstPos=0; +// quint32 firstPos=0; QList songs; QList ids; QSet prevIds=playQueueIds.toSet(); @@ -575,7 +575,7 @@ void MPDConnection::playListChanges() foreach (const MPDParseUtils::IdPos &idp, changes) { if (first) { first=false; - firstPos=idp.pos; +// firstPos=idp.pos; if (idp.pos!=0) { for (quint32 i=0; i