Dont update 'curent song' details when playqueue is updated - the current

song is updated by other means. As we now use 'plchangesposid' to speed
updates, we dont always have the full song info when playqueue is updated.
BUG:9
This commit is contained in:
craig.p.drummond@gmail.com
2012-05-01 20:52:12 +00:00
parent daf8c845e4
commit b17ea28550
2 changed files with 7 additions and 3 deletions

View File

@@ -63,7 +63,11 @@
for an artist to release two albums with the same name in different years!
32. Remove 'Single Tracks' cover creation. This is not used in grouped view,
etc.
33. Limit downloaded cocers to a max of 600x600 pixels.
33. Limit downloaded covers to a max of 600x600 pixels.
34. Dont update 'curent song' details when playqueue is updated - the current
song is updated by other means. As we now use 'plchangesposid' to speed
updates, we dont always have the full song info when playqueue is updated.
This fixes a bug where the cover widget sometimes gets reset to empty.
0.6.1
-----

View File

@@ -1565,9 +1565,9 @@ void MainWindow::updatePlayQueue(const QList<Song> &songs)
playQueueModel.update(songs);
playQueue->updateRows(usingProxy ? playQueueModel.rowCount()+10 : playQueueModel.currentSongRow(), false);
if (1==songs.count() && MPDState_Playing==MPDStatus::self()->state()) {
/*if (1==songs.count() && MPDState_Playing==MPDStatus::self()->state()) {
updateCurrentSong(songs.at(0));
} else if (0==songs.count()) {
} else*/ if (0==songs.count()) {
updateCurrentSong(Song());
}
}