From 708603daf5ee2b097150f2945d1749bf98c3a0bb Mon Sep 17 00:00:00 2001 From: Shilyaev Egor Date: Fri, 6 Dec 2019 16:06:08 +0500 Subject: [PATCH] =?UTF-8?q?fix=20#1198:=20=D0=9F=D0=B0=D0=B4=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B8=D0=BB=D0=BE=D0=B6=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D1=8F=20=D0=B2=20linux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/application/logfile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/application/logfile.cpp b/src/application/logfile.cpp index a2ccb1937..e073c958b 100644 --- a/src/application/logfile.cpp +++ b/src/application/logfile.cpp @@ -26,6 +26,8 @@ LogFile::LogFile() #ifdef HAVE_QT5 void LogFile::msgHandler(QtMsgType type, const QMessageLogContext &, const QString &msg) { + if (!mainApp) + return; if (msg.startsWith("libpng warning: iCCP")) return;