diff options
author | George Hazan <ghazan@miranda.im> | 2020-07-09 17:12:50 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-07-09 17:12:50 +0300 |
commit | 8a8d613373dc5a54dcf84025d53f5de4a8c4964f (patch) | |
tree | 5e4dba57f2d82d74208bb218e3c2f1f18b2d8276 /plugins/NewStory/src/history_control.cpp | |
parent | e7dc76ddb8785bbf26f0aaecac7d0f8af8a57db0 (diff) |
fixes #2474 (NewStory: системная история не удаляется)
Diffstat (limited to 'plugins/NewStory/src/history_control.cpp')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 3fe1f06589..f9ef9c88a8 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -618,7 +618,7 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM int eventCount = data->items.getCount(); for (int i = eventCount - 1; i >= 0; i--) { auto *p = data->items.get(i, false); - if (p->hEvent && p->hContact) + if (p->hEvent) db_event_delete(p->hEvent); } db_set_safety_mode(true); |