From 07ca243d48c766798a8d4cf60c2781f90bf43898 Mon Sep 17 00:00:00 2001 From: Zach H Date: Sat, 8 Feb 2025 11:10:45 -0500 Subject: [PATCH] Update QT_LOGGING_CONF if not set (#5578) --- cockatrice/src/main.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/main.cpp b/cockatrice/src/main.cpp index 0023a5991..69def23e6 100644 --- a/cockatrice/src/main.cpp +++ b/cockatrice/src/main.cpp @@ -190,8 +190,10 @@ int main(int argc, char *argv[]) const QByteArray configPath = ""; #endif - // Set the QT_LOGGING_CONF environment variable - qputenv("QT_LOGGING_CONF", configPath); + if (!qEnvironmentVariableIsSet(("QT_LOGGING_CONF"))) { + // Set the QT_LOGGING_CONF environment variable + qputenv("QT_LOGGING_CONF", configPath); + } qSetMessagePattern( "\033[0m[%{time yyyy-MM-dd h:mm:ss.zzz} " "%{if-debug}\033[36mD%{endif}%{if-info}\033[32mI%{endif}%{if-warning}\033[33mW%{endif}%{if-critical}\033[31mC%{"