summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbevents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-01-03 19:15:44 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-01-03 19:15:44 +0300
commit09a49cfe0925494f7fd516657df7fe327c7370dd (patch)
tree44d9d0e278fe250282bbe73b082a8952bb4645c0 /plugins/Dbx_sqlite/src/dbevents.cpp
parent756cbebea5281171c32d62a599cedd9657db7999 (diff)
fixes #3946 (Прогресс скачивания крупных файлов)
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbevents.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp
index 3d26ec28c5..81fc24fa39 100644
--- a/plugins/Dbx_sqlite/src/dbevents.cpp
+++ b/plugins/Dbx_sqlite/src/dbevents.cpp
@@ -368,6 +368,15 @@ int CDbxSQLite::SetEventJson(MEVENT hDbEvent, const char *szSetting, DBVARIANT *
}
DBFlush();
+
+ if (m_safetyMode) {
+ MCONTACT hContact = GetEventContact(hDbEvent);
+ if (auto *cc = m_cache->GetCachedContact(hContact))
+ if (cc->IsSub())
+ hContact = cc->parentID;
+
+ NotifyEventHooks(g_hevEventEdited, hContact, hDbEvent);
+ }
return 0;
}