From 8f7c4ed87e64b54edcd76a5add5c51dd139e6431 Mon Sep 17 00:00:00 2001
From: Kubat <mael.martin31@gmail.com>
Date: Sat, 18 Apr 2020 10:13:32 +0200
Subject: [PATCH] When shuffle is done, the current kara is inserted with a
 priority of 5 to ensure it will be at the begening of the queue_

---
 src/database/queue.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/database/queue.c b/src/database/queue.c
index efffd1f2..f430a5be 100644
--- a/src/database/queue.c
+++ b/src/database/queue.c
@@ -508,7 +508,7 @@ database_queue_shuffle(sqlite3 *db)
         "  );"
         /* When current is NULL, that thing is also NULL, so no insertion is done.  */
         "INSERT INTO queue_tmp (kara_id, priority)"
-        "  SELECT kara_id, priority"
+        "  SELECT kara_id, 5"
         "  FROM queue"
         "  JOIN queue_state ON queue.position = queue_state.current;"
         /* Insert Max priority in order.  */
-- 
GitLab