mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-06 13:27:40 +01:00
Replace use of QSet::toList() with QSet::values()
This commit is contained in:
parent
6c6bceb8cc
commit
6df38c389c
@ -658,7 +658,7 @@ QStringList CollectionBackend::GetAllArtistsWithAlbums(const QueryOptions &opt)
|
||||
artists << query2.Value(0).toString();
|
||||
}
|
||||
|
||||
return QStringList(artists.toList());
|
||||
return QStringList(artists.values());
|
||||
|
||||
}
|
||||
|
||||
|
@ -1716,7 +1716,7 @@ void Playlist::ReshuffleIndices() {
|
||||
}
|
||||
|
||||
// Shuffle them
|
||||
QStringList shuffled_album_keys = album_key_set.toList();
|
||||
QStringList shuffled_album_keys = album_key_set.values();
|
||||
std::random_shuffle(shuffled_album_keys.begin(), shuffled_album_keys.end());
|
||||
|
||||
// If the user is currently playing a song, force its album to be first
|
||||
|
@ -558,7 +558,7 @@ QString PlaylistManager::GetNameForNewPlaylist(const SongList &songs) {
|
||||
}
|
||||
|
||||
if (!various_artists && albums.size() == 1) {
|
||||
result += " - " + albums.toList().first();
|
||||
result += " - " + albums.values().first();
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user