diff --git a/app/main.cpp b/app/main.cpp index fb09f5bf..c1ea8e4a 100644 --- a/app/main.cpp +++ b/app/main.cpp @@ -96,7 +96,7 @@ void logToLoggerStream(QString& message) #if defined(QT_DEBUG) && defined(Q_OS_WIN32) // Output log messages to a debugger if attached if (IsDebuggerPresent()) { - static QString lineBuffer; + thread_local QString lineBuffer; lineBuffer += message; if (message.endsWith('\n')) { OutputDebugStringW(lineBuffer.toStdWString().c_str());