Commit 6af6c415 authored by Anna Medonosová's avatar Anna Medonosová

Log asserts to usage log

parent 339e748c
......@@ -25,6 +25,7 @@
#include <QCoreApplication>
#include <klocalizedstring.h>
#include <kis_assert_exception.h>
#include <KisUsageLogger.h>
#include <string>
#include "config-hide-safe-asserts.h"
......@@ -59,6 +60,8 @@ void kis_assert_common(const char *assertion, const char *file, int line, bool t
"Press Abort to see developers information (all unsaved data will be lost)")
.arg(shortMessage);
KisUsageLogger::log(shortMessage);
bool disableAssertMsg =
QProcessEnvironment::systemEnvironment().value("KRITA_NO_ASSERT_MSG", "0").toInt();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment