summaryrefslogtreecommitdiff
path: root/plugins/Dbx_sqlite/src/dbevents.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-04-22 12:19:42 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-04-22 12:19:42 +0300
commit7dab3935aeffca7eedea4c964a8d14754da4c852 (patch)
treeca48436598fd497d104b6b0c833e51ee7856e500 /plugins/Dbx_sqlite/src/dbevents.cpp
parent82206ec201380582a7a5954138e72238ecdede26 (diff)
fixes #3501 (History++: 'View History' still available after using 'Empty history')
Diffstat (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp')
-rw-r--r--plugins/Dbx_sqlite/src/dbevents.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp
index 48e3b6eb99..4c038a0751 100644
--- a/plugins/Dbx_sqlite/src/dbevents.cpp
+++ b/plugins/Dbx_sqlite/src/dbevents.cpp
@@ -242,6 +242,9 @@ BOOL CDbxSQLite::DeleteEvent(MEVENT hDbEvent)
if (rc != SQLITE_DONE)
return 1;
+ if (cc->HasCount())
+ cc->m_count--;
+
lock.unlock();
DBFlush();