diff options
author | George Hazan <george.hazan@gmail.com> | 2024-06-26 18:00:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-06-26 18:00:14 +0300 |
commit | 36775f23c11651ada7a259f3d730d1d324cb8596 (patch) | |
tree | eeeede4003e13501e30f96849ec1bffa09be6df5 /src | |
parent | 1b33bbe78ef201229c3f334a9adbb5743cd24fbf (diff) |
fixes #4492 (Проблемы с конвертацией не совсем старой БД)
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/db_events.cpp | 6 |
1 files 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);
}
|