summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/NewStory/src/history_log.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/NewStory/src/history_log.cpp b/plugins/NewStory/src/history_log.cpp
index 31ed9d9655..2e4be02948 100644
--- a/plugins/NewStory/src/history_log.cpp
+++ b/plugins/NewStory/src/history_log.cpp
@@ -72,12 +72,15 @@ public:
return 1;
}
- void LogEvents(MEVENT hDbEventFirst, int count, bool bAppend) override
+ void LogEvents(MEVENT hDbEvent, int count, bool bAppend) override
{
+ if (!hDbEvent)
+ return;
+
if (!bAppend)
Clear();
- m_histCtrl->AddEvent(m_pDlg.m_hContact, hDbEventFirst, count);
+ m_histCtrl->AddEvent(m_pDlg.m_hContact, hDbEvent, count);
}
void LogChatEvent(const LOGINFO &lin) override