GUI: Windows: set verbose message format for qDebug() messages

This commit is contained in:
Moritz Bunkus 2020-04-02 21:59:35 +02:00
parent 943fefe237
commit ba608ed5e0
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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");