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

this fixes #3749
This commit is contained in:
Andrzej Rybczak
2013-04-27 19:17:58 +02:00
parent 7a470cdfbf
commit 2880ac950e

View File

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