Skip to content
Permalink
Browse files

Also dump backtraces on qCritical() warnings

  • Loading branch information
nyalldawson committed Sep 22, 2020
1 parent 67ec244 commit 950d2bd9357b379c5a3bf5a5399340acadaf6f4f
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/app/main.cpp
@@ -386,6 +386,11 @@ void myMessageOutput( QtMsgType type, const QMessageLogContext &, const QString
break;
case QtCriticalMsg:
myPrint( "Critical: %s\n", msg.toLocal8Bit().constData() );

#ifdef QGISDEBUG
dumpBacktrace( 20 );
#endif

break;
case QtWarningMsg:
{

0 comments on commit 950d2bd

Please sign in to comment.
You can’t perform that action at this time.