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