mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 10:48:33 +01:00
Fix segfault when a song's tag has changed inbetween runs
This commit is contained in:
parent
cbb41cab46
commit
56fb0663ee
@ -108,7 +108,7 @@ void Library::SongsDiscovered(const SongList& songs) {
|
||||
album = artist->ChildByKey(song.album());
|
||||
if (album == NULL)
|
||||
album = CreateAlbumNode(true, song.album(), artist, song.is_compilation(),
|
||||
song.art_automatic(), song.art_manual(), album->artist);
|
||||
song.art_automatic(), song.art_manual(), artist->key);
|
||||
|
||||
if (album->lazy_loaded)
|
||||
CreateSongNode(true, song, album);
|
||||
@ -194,7 +194,7 @@ LibraryItem* Library::CreateAlbumNode(bool signal, const QString& name,
|
||||
if (!art_automatic.isNull() && ret->cover_art.isNull())
|
||||
ret->cover_art.load(art_automatic);*/
|
||||
|
||||
ret->artist = compilation ? QString::null : artist;
|
||||
ret->artist = compilation ? QString() : artist;
|
||||
|
||||
if (signal)
|
||||
endInsertRows();
|
||||
|
Loading…
Reference in New Issue
Block a user