Maybe fix crash
This commit is contained in:
parent
669a0263ff
commit
a338707388
@ -220,9 +220,11 @@ void Library::SongsDeleted(const SongList& songs) {
|
||||
foreach (const Song& song, songs) {
|
||||
LibraryItem* artist = NULL;
|
||||
|
||||
if (song.is_compilation() && compilation_artist_node_->lazy_loaded)
|
||||
if (song.is_compilation() && compilation_artist_node_ &&
|
||||
compilation_artist_node_->lazy_loaded)
|
||||
artist = compilation_artist_node_;
|
||||
else if (artist_nodes_.contains(song.artist()) &&
|
||||
else if (!song.is_compilation() &&
|
||||
artist_nodes_.contains(song.artist()) &&
|
||||
artist_nodes_[song.artist()]->lazy_loaded)
|
||||
artist = artist_nodes_[song.artist()];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user