This commit is contained in:
Andrzej Rybczak
2009-02-17 08:29:40 +01:00
parent 7c936d8eaf
commit 32bac776e7
11 changed files with 31 additions and 47 deletions

View File

@@ -345,7 +345,7 @@ void MediaLibrary::AddToPlaylist(bool add_n_play)
Mpd->PlayID(s->GetID());
}
else
ShowMessage("%s", message_part_of_songs_added);
ShowMessage("%s", MPD::Message::PartOfSongsAdded);
}
}
else if (w == Albums)
@@ -362,7 +362,7 @@ void MediaLibrary::AddToPlaylist(bool add_n_play)
Mpd->PlayID(s->GetID());
}
else
ShowMessage("%s", message_part_of_songs_added);
ShowMessage("%s", MPD::Message::PartOfSongsAdded);
}
}
else if (w == Songs)
@@ -428,3 +428,11 @@ void MediaLibrary::AddToPlaylist(bool add_n_play)
}
}
bool MediaLibrary::SortSongsByTrack(Song *a, Song *b)
{
if (a->GetDisc() == b->GetDisc())
return StrToInt(a->GetTrack()) < StrToInt(b->GetTrack());
else
return StrToInt(a->GetDisc()) < StrToInt(b->GetDisc());
}