From c6904aae30353fab5dce76c633169124a2f6256a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 4 Aug 2023 17:10:59 +0300 Subject: NewStory: fix for cache consistency --- plugins/NewStory/src/history_control.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/NewStory/src/history_control.cpp') diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 17dd33bb6f..ec4c670afa 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -140,6 +140,7 @@ void NewstoryListData::DeleteItems(void) if (p->hEvent && p->m_bSelected) { db_event_delete(p->hEvent); items.remove(i); + totalCount--; firstSel = i; } } @@ -638,6 +639,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (idx != -1) { data->items.remove(idx); data->ScheduleDraw(); + data->totalCount--; } break; -- cgit v1.2.3