Skip to content

Commit

Permalink
>Fix conversion for older versions
Browse files Browse the repository at this point in the history
  • Loading branch information
trueromanus committed Mar 28, 2022
1 parent 1cb02be commit 700f0c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Classes/ViewModels/releasesviewmodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,10 @@ QStringList ReleasesViewModel::getMostPopularVoices() const noexcept

void ReleasesViewModel::fillNewInFavorites(QList<FullReleaseModel *>* list) const noexcept
{
QSet<int> favorites(m_userFavorites->begin(), m_userFavorites->end());
QSet<int> favorites;
foreach (auto favorite, *m_userFavorites) {
favorites.insert(favorite);
}

foreach (auto release, *m_releases) {
if (!favorites.contains(release->id())) continue;
Expand Down

0 comments on commit 700f0c8

Please sign in to comment.