summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbevents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-24 19:59:05 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-24 19:59:05 +0300
commit0bb5a6b57b308c1bd7463e767c6b0dc05acf7571 (patch)
tree452ab2a50b2893dffaad27c333dbd3780565d40c /plugins/Dbx_sqlite/src/dbevents.cpp
parent96ac0b0639e1c6396cb084349f9361a1c34ddb57 (diff)
disk file to be deleted when an event containing it is being removed
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbevents.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp
index 70f3a6e740..73baf8389c 100644
--- a/plugins/Dbx_sqlite/src/dbevents.cpp
+++ b/plugins/Dbx_sqlite/src/dbevents.cpp
@@ -220,6 +220,8 @@ BOOL CDbxSQLite::DeleteEvent(MEVENT hDbEvent)
if (cc == nullptr)
return 1;
+ NotifyEventHooks(g_hevEventDeleted, hContact, hDbEvent);
+
mir_cslockfull lock(m_csDbAccess);
int rc = DeleteEventMain(hDbEvent);
if (rc != SQLITE_DONE)
@@ -237,7 +239,6 @@ BOOL CDbxSQLite::DeleteEvent(MEVENT hDbEvent)
lock.unlock();
DBFlush();
- NotifyEventHooks(g_hevEventDeleted, hContact, hDbEvent);
return 0;
}