From 2295a5616087f241d22c17d55016e020c229eeb4 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 30 Sep 2018 18:39:51 +0300 Subject: [PATCH] Check QMessageLogContext class version. --HG-- branch : release --- src/libs/vmisc/qt_dispatch/qt_dispatch.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/libs/vmisc/qt_dispatch/qt_dispatch.h b/src/libs/vmisc/qt_dispatch/qt_dispatch.h index e858c170c..04aa1d684 100644 --- a/src/libs/vmisc/qt_dispatch/qt_dispatch.h +++ b/src/libs/vmisc/qt_dispatch/qt_dispatch.h @@ -13,6 +13,7 @@ #include #include +#include #include "logging.h" @@ -73,6 +74,9 @@ public: m_function(context.function), m_category(context.category) { +#ifndef V_NO_ASSERT + assert(context.version == 2); +#endif moveToThread(thread); connect(QThread::currentThread(), &QThread::finished, this, &WorkerClass::deleteLater); }