rewrite communication system with mpd

This commit is contained in:
Andrzej Rybczak
2013-04-06 19:01:27 +02:00
parent 153e843774
commit 6a3eb73a49
25 changed files with 1039 additions and 1470 deletions

View File

@@ -201,11 +201,9 @@ void SortPlaylistDialog::sort() const
Statusbar::msg("Sorting...");
Mpd.StartCommandsList();
quick_sort(playlist.begin(), playlist.end());
if (Mpd.CommitCommandsList())
{
Statusbar::msg("Playlist sorted");
switchToPreviousScreen();
}
Mpd.CommitCommandsList();
Statusbar::msg("Playlist sorted");
switchToPreviousScreen();
}
void SortPlaylistDialog::cancel() const