Only show relevant genres for playlist and devices
This commit is contained in:
committed by
craig.p.drummond
parent
2be50e008a
commit
2d8a613c24
@@ -739,12 +739,15 @@ void PlaylistsModel::clearPlaylists()
|
||||
|
||||
void PlaylistsModel::updateGenreList()
|
||||
{
|
||||
QSet<QString> genres;
|
||||
QSet<QString> newGenres;
|
||||
foreach (PlaylistItem *p, items) {
|
||||
genres+=p->genres;
|
||||
newGenres+=p->genres;
|
||||
}
|
||||
|
||||
emit updateGenres(genres);
|
||||
if (newGenres!=plGenres) {
|
||||
plGenres=newGenres;
|
||||
emit updateGenres(plGenres);
|
||||
}
|
||||
}
|
||||
|
||||
quint32 PlaylistsModel::allocateKey()
|
||||
|
||||
Reference in New Issue
Block a user