From ba608ed5e02948255b138abf46c8a30a574f7b14 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Thu, 2 Apr 2020 21:59:35 +0200 Subject: [PATCH] GUI: Windows: set verbose message format for qDebug() messages --- NEWS.md | 3 +++ src/mkvtoolnix-gui/mkvtoolnix_gui.cpp | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/NEWS.md b/NEWS.md index 71d505ef3..4e75a5422 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,9 @@ * mkvmerge: mkvmerge has never supported appending & splitting FLAC audio tracks. mkvmerge will now emit error messages when the user attempts either instead of continuing and creating invalid FLAC tracks. +* MKVToolNix GUI: Windows: debug output sent via Qt's to Windows' debugging + facility will use a more verbose message format including the application + name, making it easier to filter for in SysInternal's "Debug View" utility. ## Bug fixes diff --git a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp index dba47187a..96de855b8 100644 --- a/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp +++ b/src/mkvtoolnix-gui/mkvtoolnix_gui.cpp @@ -34,6 +34,11 @@ enableOrDisableHighDPIScaling() { void initiateSettings() { +#if defined(SYS_WINDOWS) + if (mtx::sys::get_environment_variable("").empty()) + mtx::sys::set_environment_variable("QT_MESSAGE_PATTERN", "[%{type}] %{appname} (%{file}:%{line}) - %{message}"); +#endif + QCoreApplication::setOrganizationName("bunkus.org"); QCoreApplication::setOrganizationDomain("bunkus.org"); QCoreApplication::setApplicationName("mkvtoolnix-gui");