diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-04 17:10:59 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-04 17:10:59 +0300 |
commit | c6904aae30353fab5dce76c633169124a2f6256a (patch) | |
tree | 14ccfdf65407acc501fa8b89468ff2ba2053c56d /plugins/NewStory/src/history_control.cpp | |
parent | 62b0357367d955eab8e4665f657af9ead535da88 (diff) |
NewStory: fix for cache consistency
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |