diff options
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/history_array.cpp | 3 | ||||
-rw-r--r-- | plugins/NewStory/src/history_control.cpp | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/plugins/NewStory/src/history_array.cpp b/plugins/NewStory/src/history_array.cpp index e82dade5aa..195cf55896 100644 --- a/plugins/NewStory/src/history_array.cpp +++ b/plugins/NewStory/src/history_array.cpp @@ -515,9 +515,6 @@ void HistoryArray::clear() void HistoryArray::addChatEvent(SESSION_INFO *si, const LOGINFO *lin)
{
- if (si == nullptr)
- return;
-
int numItems = getCount();
auto &p = allocateItem();
p.hContact = si->hContact;
diff --git a/plugins/NewStory/src/history_control.cpp b/plugins/NewStory/src/history_control.cpp index c31c0a0e0d..e5108cc7d3 100644 --- a/plugins/NewStory/src/history_control.cpp +++ b/plugins/NewStory/src/history_control.cpp @@ -109,6 +109,9 @@ void NewstoryListData::OnResize(int newWidth, int newHeight) void NewstoryListData::AddChatEvent(SESSION_INFO *si, const LOGINFO *lin)
{
+ if (si == nullptr)
+ return;
+
ScheduleDraw();
items.addChatEvent(si, lin);
totalCount++;
|