From 36775f23c11651ada7a259f3d730d1d324cb8596 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 26 Jun 2024 18:00:10 +0300 Subject: =?UTF-8?q?fixes=20#4492=20(=D0=9F=D1=80=D0=BE=D0=B1=D0=BB=D0=B5?= =?UTF-8?q?=D0=BC=D1=8B=20=D1=81=20=D0=BA=D0=BE=D0=BD=D0=B2=D0=B5=D1=80?= =?UTF-8?q?=D1=82=D0=B0=D1=86=D0=B8=D0=B5=D0=B9=20=D0=BD=D0=B5=20=D1=81?= =?UTF-8?q?=D0=BE=D0=B2=D1=81=D0=B5=D0=BC=20=D1=81=D1=82=D0=B0=D1=80=D0=BE?= =?UTF-8?q?=D0=B9=20=D0=91=D0=94)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mir_app/src/db_events.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mir_app/src/db_events.cpp b/src/mir_app/src/db_events.cpp index 210e609dff..4b8f32cc95 100644 --- a/src/mir_app/src/db_events.cpp +++ b/src/mir_app/src/db_events.cpp @@ -348,11 +348,11 @@ void DB::EventInfo::flushJson() JSONNode& DB::EventInfo::setJson() { + if (m_json == nullptr) + m_json = new JSONNode(JSON_NODE); + if (!(flags & DBEF_JSON)) { flags |= DBEF_JSON; - - if (m_json == nullptr) - m_json = new JSONNode(JSON_NODE); if (pBlob) *m_json << CHAR_PARAM("b", (char *)pBlob); } -- cgit v1.2.3