summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-25 17:34:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-25 17:34:57 +0300
commit7378dd16f14d3f9f34cde4a18859d406cd303a22 (patch)
treec2cd180be03f9df961ed4145ed037071775e5c1d /plugins/Dbx_mdbx/src
parent6ea21b88c16c553aa97e2cd53266ffd4a689d581 (diff)
DBEF_TEMPORARY - new flag to disable event notification about event addition
Diffstat (limited to 'plugins/Dbx_mdbx/src')
-rw-r--r--plugins/Dbx_mdbx/src/dbevents.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbevents.cpp b/plugins/Dbx_mdbx/src/dbevents.cpp
index 6a7592a781..b534706b25 100644
--- a/plugins/Dbx_mdbx/src/dbevents.cpp
+++ b/plugins/Dbx_mdbx/src/dbevents.cpp
@@ -245,7 +245,7 @@ bool CDbxMDBX::EditEvent(MCONTACT contactID, MEVENT hDbEvent, const DBEVENTINFO
DBFlush();
// Notify only in safe mode or on really new events
- if (m_safetyMode)
+ if (m_safetyMode && !(dbei->flags & DBEF_TEMPORARY))
NotifyEventHooks(bNew ? g_hevEventAdded : g_hevEventEdited, contactNotifyID, hDbEvent);
return true;