1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-16 19:31:02 +01:00

Fix a crash when creating a new smart playlist

This commit is contained in:
David Sansome 2011-11-29 12:35:01 +00:00
parent b9bf35948a
commit 0aba1ce77d

View File

@ -1637,6 +1637,10 @@ bool AlbumShuffleComparator(const QMap<QString, int>& album_key_positions,
}
void Playlist::ReshuffleIndices() {
if (!playlist_sequence_) {
return;
}
if (playlist_sequence_->shuffle_mode() == PlaylistSequence::Shuffle_Off) {
// No shuffling - sort the virtual item list normally.
std::sort(virtual_items_.begin(), virtual_items_.end());