mirror of
https://github.com/clementine-player/Clementine
synced 2025-01-31 03:27:40 +01:00
Don't fiddle playlist entries if the directory ID doesn't match what it was before - eg. if you delete a directory and add another one, and some IDs get reused.
This commit is contained in:
parent
724fa9539f
commit
a8f505e266
@ -242,6 +242,8 @@ void PlaylistManager::SongsDiscovered(const SongList& songs) {
|
||||
foreach (const Data& data, playlists_) {
|
||||
PlaylistItemList items = data.p->library_items_by_id(song.id());
|
||||
foreach (boost::shared_ptr<PlaylistItem> item, items) {
|
||||
if (item->Metadata().directory_id() != song.directory_id())
|
||||
continue;
|
||||
static_cast<LibraryPlaylistItem*>(item.get())->SetMetadata(song);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user