mpdpp: make it possible to send playlist_delete command in commands list

this fixes #3749
master
Andrzej Rybczak 13 years ago
parent 7a470cdfbf
commit 2880ac950e
  1. 10
      src/mpdpp.cpp

@ -714,9 +714,13 @@ void Connection::Delete(unsigned pos)
void Connection::PlaylistDelete(const std::string &playlist, unsigned pos)
{
prechecksNoCommandsList();
mpd_run_playlist_delete(m_connection, playlist.c_str(), pos);
checkErrors();
prechecks();
mpd_send_playlist_delete(m_connection, playlist.c_str(), pos);
if (!m_command_list_active)
{
mpd_response_finish(m_connection);
checkErrors();
}
}
void Connection::StartCommandsList()

Loading…
Cancel
Save