mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
Fix a crash when creating a new smart playlist
This commit is contained in:
parent
b9bf35948a
commit
0aba1ce77d
@ -1637,6 +1637,10 @@ bool AlbumShuffleComparator(const QMap<QString, int>& album_key_positions,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Playlist::ReshuffleIndices() {
|
void Playlist::ReshuffleIndices() {
|
||||||
|
if (!playlist_sequence_) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (playlist_sequence_->shuffle_mode() == PlaylistSequence::Shuffle_Off) {
|
if (playlist_sequence_->shuffle_mode() == PlaylistSequence::Shuffle_Off) {
|
||||||
// No shuffling - sort the virtual item list normally.
|
// No shuffling - sort the virtual item list normally.
|
||||||
std::sort(virtual_items_.begin(), virtual_items_.end());
|
std::sort(virtual_items_.begin(), virtual_items_.end());
|
||||||
|
Loading…
Reference in New Issue
Block a user