diff options
Diffstat (limited to 'plugins/NewStory/src/history_log.cpp')
| -rw-r--r-- | plugins/NewStory/src/history_log.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp index 1bcd86ab24..edbacc3190 100644 --- a/plugins/NewStory/src/history_log.cpp +++ b/plugins/NewStory/src/history_log.cpp @@ -48,11 +48,8 @@ public: void LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) override { - if (count != -1) { - ADDEVENTS tmp = { m_pDlg.m_hContact, hDbEventFirst, count }; - SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0); - } - else SendMessage(m_hwnd, NSM_ADDHISTORY, m_pDlg.m_hContact, 0); + ADDEVENTS tmp = { m_pDlg.m_hContact, hDbEventFirst, count }; + SendMessage(m_hwnd, NSM_ADDEVENTS, (LPARAM)&tmp, 0); } void LogEvents(DBEVENTINFO *dbei_s, bool bAppend) |
