display message about sorting playlist a bit earlier

since actual sorting takes more time than telling mpd how to
sort, message should be displayed before a call to std::sort()
This commit is contained in:
Andrzej Rybczak
2009-09-16 14:15:52 +00:00
parent 84418130fe
commit 2cdbee4124

View File

@@ -177,6 +177,7 @@ void Playlist::EnterPressed()
return;
}
ShowMessage("Sorting playlist...");
MPD::SongList playlist, cmp;
playlist.reserve(Items->Size());
@@ -195,7 +196,6 @@ void Playlist::EnterPressed()
}
BlockUpdate = 1;
ShowMessage("Sorting playlist...");
Mpd.StartCommandsList();
do
{