From 4d6954eaa86092124686f468938eb96c4bd6743c Mon Sep 17 00:00:00 2001 From: Luke Le Moignan Date: Sat, 31 Dec 2022 10:01:33 +0000 Subject: [PATCH] Fix the cross-thread message queue to actually act as a queue, not a stack --- src/util/error.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/error.cpp b/src/util/error.cpp index bfb211f3..e7778e9f 100644 --- a/src/util/error.cpp +++ b/src/util/error.cpp @@ -176,7 +176,7 @@ void queue_message(MessageType type, String const& msg) { // Thread safety wxMutexLocker lock(crit_error_handling); // Only show errors in the main thread - message_queue.push_back(make_pair(type,msg)); + message_queue.push_front(make_pair(type,msg)); } void handle_error(const Error& e) {