From 51ae8b43080b11c1ebe476644de2a6d1f35d58b8 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 1 Aug 2022 23:54:39 +0200 Subject: [PATCH] GUI: only set QT_MESSAGE_PATTERN if it isn't set --- src/mkvtoolnix-gui/mkvtoolnix_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp index 1fb9366fa..73755e1f9 100644 --- a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp +++ b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp @@ -46,7 +46,7 @@ enableOrDisableHighDPIScaling() { void initiateSettings() { #if defined(SYS_WINDOWS) - if (mtx::sys::get_environment_variable("").empty()) + if (mtx::sys::get_environment_variable("QT_MESSAGE_PATTERN").empty()) mtx::sys::set_environment_variable("QT_MESSAGE_PATTERN", "[%{type}] %{appname} (%{file}:%{line}) - %{message}"); #endif