Only update if required

This commit is contained in:
craig
2012-02-28 19:28:59 +00:00
parent c92e6629f3
commit e4227853bc

View File

@@ -574,8 +574,11 @@ void PlayQueueModel::setGrouped(bool g)
void PlayQueueModel::refresh()
{
if (songs.count()) {
updatePlaylist(songs);
if (grouped && songs.count()) {
Song s=songs.at(0);
if (0==s.key || Song::constNullKey==s.key) {
updatePlaylist(songs);
}
}
}