diff options
Diffstat (limited to '')
-rw-r--r-- | src/queue.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/queue.c b/src/queue.c index d847f1138..dd0b48cb5 100644 --- a/src/queue.c +++ b/src/queue.c @@ -44,14 +44,9 @@ queue_next_order(const struct queue *queue, unsigned order) { assert(order < queue->length); - if (queue->single) - { - if (queue->repeat && !queue->consume) - return order; - else - return -1; - } - if (order + 1 < queue->length) + if (queue->single && queue->repeat && !queue->consume) + return order; + else if (order + 1 < queue->length) return order + 1; else if (queue->repeat && (order > 0 || !queue->consume)) /* restart at first song */ |