From 147122758513993f4fd8bdc6c341f21d9d8beaca Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 25 Apr 2020 17:41:18 +0300 Subject: CLogWindow::LogEvents considered useless and localized inside tabSRMM --- plugins/TabSRMM/src/msgdlgother.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'plugins/TabSRMM/src/msgdlgother.cpp') diff --git a/plugins/TabSRMM/src/msgdlgother.cpp b/plugins/TabSRMM/src/msgdlgother.cpp index 249863ec01..8317d4bd0c 100644 --- a/plugins/TabSRMM/src/msgdlgother.cpp +++ b/plugins/TabSRMM/src/msgdlgother.cpp @@ -852,6 +852,19 @@ void CMsgDialog::LoadSplitter() m_iSplitterY = 150; } +///////////////////////////////////////////////////////////////////////////////////////// + +void CMsgDialog::LogEvent(DBEVENTINFO &dbei) +{ + dbei.flags |= DBEF_TEMPORARY; + + MEVENT hDbEvent = db_event_add(m_hContact, &dbei); + if (hDbEvent) { + m_pLog->LogEvents(hDbEvent, 1, true); + db_event_delete(hDbEvent); + } +} + ///////////////////////////////////////////////////////////////////////////////////////// // draw various elements of the message window, like avatar(s), info panel fields // and the color formatting menu -- cgit v1.2.3