1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2025-02-06 12:25:10 +01:00

Fix null pointer crash

Possible fix for #752
This commit is contained in:
Jonas Kvinge 2021-09-01 16:37:34 +02:00
parent fc57b437c2
commit 49d9ded684

View File

@ -90,7 +90,7 @@ void ContextAlbumsModel::AddSongs(const SongList &songs) {
container = container_nodes_[key];
}
else {
container = ItemFromSong(CollectionItem::Type_Container, true, container, song, 0);
container = ItemFromSong(CollectionItem::Type_Container, true, root_, song, 0);
container_nodes_.insert(key, container);
}
song_nodes_[song.id()] = ItemFromSong(CollectionItem::Type_Song, true, container, song, -1);