do not store commands list in MPD::Connection

it should have sent commandlist begin and end commands from the beginning,
having separated functions just to handle queueing commands was plainly ugly.
This commit is contained in:
Andrzej Rybczak
2009-03-12 17:30:25 +01:00
parent 8a4ee22b61
commit 24c37eb592
11 changed files with 202 additions and 230 deletions

View File

@@ -243,6 +243,7 @@ void Playlist::Sort()
BlockUpdate = 1;
ShowMessage("Sorting playlist...");
Mpd->StartCommandsList();
do
{
for (size_t i = 0; i < playlist.size(); i++)
@@ -257,6 +258,7 @@ void Playlist::Sort()
}
}
while (playlist != cmp);
Mpd->CommitCommandsList();
ShowMessage("Playlist sorted!");
}