From fc1b941f5660cf74e253c0a7b98ecd79bb4c8d40 Mon Sep 17 00:00:00 2001 From: Phil Taylor Date: Sat, 23 Sep 2023 20:16:26 +0100 Subject: [PATCH] WIll this work? --- cachingqueue.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cachingqueue.cpp b/cachingqueue.cpp index 2e8d056..0079cea 100644 --- a/cachingqueue.cpp +++ b/cachingqueue.cpp @@ -79,8 +79,10 @@ void cachingQueue::run() it=queue.erase(it); if (item.recurring) { while (it.key() == prio) + { it++; - queue.insert(it,prio,item); + } + queue.insert(--it,prio,item); updateCache(false,item.command,item.param,item.sub); } }