mpdpp: make it possible to send playlist_delete command in commands list
this fixes #3749
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user