remove some hacky shit

This commit is contained in:
Andrzej Rybczak
2012-08-14 01:48:36 +02:00
parent 181224b837
commit 2d57f15cad
5 changed files with 21 additions and 54 deletions

View File

@@ -290,7 +290,7 @@ bool Playlist::isFiltered()
{
if (Items->isFiltered())
{
ShowMessage("Function disabled due to enabled filtering in playlist");
ShowMessage("Function currently unavailable due to filtered playlist");
return true;
}
return false;
@@ -599,19 +599,12 @@ bool Playlist::Add(const MPD::SongList &l, bool play, int position)
if (Mpd.AddSong(**j, position) < 0)
break;
}
if (!Mpd.CommitCommandsList())
return false;
if (play && old_playlist_size < Items->Size())
Mpd.Play(old_playlist_size);
if (position < 0 && Items->Back().GetHash() != l.back()->GetHash())
{
if (it != l.begin())
ShowMessage("%s", MPD::Message::PartOfSongsAdded);
return false;
}
else
return true;
return true;
}