diff options
| author | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2026-09-26 23:24:03 +0200 |
| commit | 059831534c7e884f0a607ed86b582fd00d821731 (patch) | |
| tree | 76bcb67a78f8aa2654fd34c2ad801a62136b0170 /WSJTXLogging.cpp | |
| parent | d83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff) | |
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
Diffstat (limited to 'WSJTXLogging.cpp')
| -rw-r--r-- | WSJTXLogging.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/WSJTXLogging.cpp b/WSJTXLogging.cpp index 898de875..7f1e1da5 100644 --- a/WSJTXLogging.cpp +++ b/WSJTXLogging.cpp @@ -26,6 +26,7 @@ #include <QStandardPaths> #include <QRegularExpression> #include <QMessageLogContext> +#include <QApplication> #include "Logger.hpp" #include "qt_helpers.hpp" @@ -240,7 +241,10 @@ WSJTXLogging::WSJTXLogging () default_log_config (); } - ::qInstallMessageHandler (&qt_log_handler); + QFile f(QApplication::applicationDirPath() + "/qdebug"); + if(!f.exists()) { + ::qInstallMessageHandler (&qt_log_handler); + } } WSJTXLogging::~WSJTXLogging () |
