fix: show again multiple album without year in media library

This commit is contained in:
Sebastian Peters
2009-03-01 23:27:25 +01:00
committed by Andrzej Rybczak
parent b9cbacebff
commit e0a9a6cb9c

View File

@@ -185,7 +185,7 @@ void MediaLibrary::Update()
sort(l.begin(), l.end(), SortSongsByYear);
for (SongList::const_iterator j = l.begin(); j != l.end(); j++)
{
if (!(*j)->GetAlbum().empty() && (maplist.empty() || (*j)->GetYear() != maplist.back().second.Year))
if (!(*j)->GetAlbum().empty() && (maplist.empty() || (*j)->GetYear() != maplist.back().second.Year || (*j)->GetAlbum() != maplist.back().second.Album))
{
utf_to_locale(*it);
(*j)->Localize();