make sorting window use main ncmpcpp loop

This commit is contained in:
Andrzej Rybczak
2009-08-30 02:47:46 +02:00
parent 62ba4ce343
commit 18e611bee2
11 changed files with 355 additions and 356 deletions

View File

@@ -245,9 +245,9 @@ void UpdateSongList(Menu<Song> *menu)
bool bold = 0;
for (size_t i = 0; i < menu->Size(); ++i)
{
for (size_t j = 0; j < myPlaylist->Main()->Size(); ++j)
for (size_t j = 0; j < myPlaylist->Items->Size(); ++j)
{
if (myPlaylist->Main()->at(j).GetHash() == menu->at(i).GetHash())
if (myPlaylist->Items->at(j).GetHash() == menu->at(i).GetHash())
{
bold = 1;
break;