Call sort on library proxy model after update. Not sure why this is required - don't think it should be, and is not in the desktop version. But if its not called we don't get the same sorting.

This commit is contained in:
craig.p.drummond
2014-04-13 07:31:27 +00:00
parent 5004eb3c77
commit 61bf6be71a

View File

@@ -150,14 +150,19 @@ void MPDBackend::setMpdVolume(quint8 volume) {
}
void MPDBackend::artistsUpdated() {
// TODO: If we don't call sort here, the items ar eonly sorted string-wise. This
// means that 'Various Artists' is not placerd at the top, and "The XXX" is not sorted as "XXX"
artistsProxyModel.sort();
emit onArtistsModelChanged();
}
void MPDBackend::albumsUpdated() {
//albumsProxyModel.sort();
emit onAlbumsModelChanged();
}
void MPDBackend::playlistsUpdated() {
//playlistsProxyModel.sort();
emit onPlaylistsModelChanged();
}