queue/PlaylistEdit: fix inverted check
Regression by commit 471c37be59
Closes https://github.com/MusicPlayerDaemon/MPD/issues/1135
This commit is contained in:
parent
38bfef7d0b
commit
36410daaa4
@ -384,7 +384,7 @@ playlist::Shuffle(PlayerControl &pc, RangeArg range)
|
|||||||
if (!range.CheckClip(GetLength()))
|
if (!range.CheckClip(GetLength()))
|
||||||
throw PlaylistError::BadRange();
|
throw PlaylistError::BadRange();
|
||||||
|
|
||||||
if (range.HasAtLeast(2))
|
if (!range.HasAtLeast(2))
|
||||||
/* needs at least two entries. */
|
/* needs at least two entries. */
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user