diff options
author | George Hazan <george.hazan@gmail.com> | 2023-08-18 17:44:57 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-08-18 17:44:57 +0300 |
commit | 28abbea4fcb659887afe752ce81b4f41fda2374d (patch) | |
tree | efcefb2addc00bc20b20a4a7dd72e509e741d357 /plugins/NewStory/src | |
parent | c1d64084b0968464e6d21623eb54e24569419f0b (diff) |
code cleaning
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index a20e5a752d..c358b918b5 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -92,26 +92,23 @@ void NewstoryListData::OnTimer(CTimer *pTimer) void NewstoryListData::AddChatEvent(SESSION_INFO *si, const LOGINFO *lin) { + ScheduleDraw(); items.addChatEvent(si, lin); totalCount++; - hasData = true; - ScheduleDraw(); } void NewstoryListData::AddEvent(MCONTACT hContact, MEVENT hFirstEvent, int iCount) { + ScheduleDraw(); items.addEvent(hContact, hFirstEvent, iCount); totalCount = items.getCount(); - hasData = true; - ScheduleDraw(); } void NewstoryListData::AddResults(const OBJLIST<SearchResult> &results) { + ScheduleDraw(); items.addResults(results); totalCount = items.getCount(); - hasData = true; - ScheduleDraw(); } void NewstoryListData::AddSelection(int iFirst, int iLast) @@ -482,6 +479,8 @@ void NewstoryListData::RecalcScrollBar() void NewstoryListData::ScheduleDraw() { bWasAtBottom = AtBottom(); + hasData = true; + redrawTimer.Stop(); redrawTimer.Start(30); } |