diff options
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 6 |
2 files changed, 2 insertions, 6 deletions
diff --git a/plugins/NewStory/src/history.cpp b/plugins/NewStory/src/history.cpp index 20c5d10da5..6f5cab65bd 100644 --- a/plugins/NewStory/src/history.cpp +++ b/plugins/NewStory/src/history.cpp @@ -551,7 +551,7 @@ public: UpdateTitle(); - ADDEVENTS tmp = { m_hContact, 0, -1 }; + ADDEVENTS tmp = { m_hContact, db_event_first(m_hContact), -1 }; SendMessage(m_histControl.GetHwnd(), NSM_ADDEVENTS, WPARAM(&tmp), 0); Window_SetIcon_IcoLib(m_hwnd, g_plugin.getIconHandle(ICO_NEWSTORY)); diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index 56dbaa9edc..a965e7eb81 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -493,12 +493,8 @@ LRESULT CALLBACK NewstoryListWndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM // History list control messages case NSM_ADDEVENTS: - { - auto *p = (ADDEVENTS *)wParam; - if (p->eventCount == -1) - p->hFirstEVent = db_event_first(p->hContact); + if (auto *p = (ADDEVENTS *)wParam) data->items.addEvent(p->hContact, p->hFirstEVent, p->eventCount); - } data->redrawTimer.Stop(); data->redrawTimer.Start(100); |