cleaning
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user