actions: require confirmation before shuffling range

This commit is contained in:
Andrzej Rybczak
2015-11-04 20:25:17 +01:00
parent 0e32959721
commit 2832c6c540

View File

@@ -1215,6 +1215,7 @@ bool Shuffle::canBeRun()
void Shuffle::run()
{
confirmAction("Do you really want to shuffle selected range?");
auto begin = myPlaylist->main().begin();
Mpd.ShuffleRange(m_begin-begin, m_end-begin);
Statusbar::print("Range shuffled");