LogWidget: Do not use QueueOnObject to construct log queue,

instead store a std::string constructed from string_view and convert to QString just before appending
This commit is contained in:
Silent
2019-08-31 00:15:03 +02:00
parent e746d95d01
commit b088fc37d5
2 changed files with 60 additions and 49 deletions

View File

@ -8,6 +8,7 @@
#include <mutex>
#include <queue>
#include <string>
#include "Common/Logging/LogManager.h"
@ -46,6 +47,8 @@ private:
QTimer* m_timer;
using LogEntry = std::pair<std::string, LogTypes::LOG_LEVELS>;
std::mutex m_log_mutex;
std::queue<QString> m_log_queue;
std::queue<LogEntry> m_log_queue;
};