Skip to content

Commit

Permalink
Merge pull request #4725 from ronso0/history-keep-hidden-tracks
Browse files Browse the repository at this point in the history
Library: keep hidden tracks in history
  • Loading branch information
uklotzde authored May 6, 2022
2 parents bb2ff2d + 79da2d7 commit fa5651e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/library/dao/playlistdao.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,10 @@ void PlaylistDAO::removeTracksFromPlaylists(const QList<TrackId>& trackIds) {
it != playlistsTrackIsInCopy.constEnd(); ++it) {
if (it.key() == trackId) {
const auto playlistId = it.value();
// keep tracks in history playlists
if (getHiddenType(playlistId) == PlaylistDAO::PLHT_SET_LOG) {
continue;
}
removeTracksFromPlaylistByIdInner(playlistId, trackId);
playlistIds.insert(playlistId);
}
Expand Down

0 comments on commit fa5651e

Please sign in to comment.