diff options
-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; |