Check if songs are in playlist when displaying them, not up-front

This commit is contained in:
Andrzej Rybczak
2017-01-06 13:58:22 +01:00
parent e191959976
commit 7d502e42ba
11 changed files with 55 additions and 104 deletions

View File

@@ -398,17 +398,6 @@ std::string getSharedDirectory(Iterator first, Iterator last)
return result;
}
template <typename ListT>
void markSongsInPlaylist(ListT &list)
{
ScopedUnfilteredMenu<typename ListT::Item::Type> sunfilter(ReapplyFilter::No, list);
for (auto &p : static_cast<SongList &>(list))
{
if (p.song() != nullptr)
p.properties().setBold(myPlaylist->checkForSong(*p.song()));
}
}
template <typename Iterator>
bool addSongsToPlaylist(Iterator first, Iterator last, bool play, int position)
{