From 7dab3935aeffca7eedea4c964a8d14754da4c852 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 22 Apr 2023 12:19:42 +0300 Subject: fixes #3501 (History++: 'View History' still available after using 'Empty history') --- plugins/Dbx_sqlite/src/dbevents.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'plugins/Dbx_sqlite/src/dbevents.cpp') 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(); -- cgit v1.2.3