diff options
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 () |
