From a795305752295eb6da69e64deeb023a3a596f182 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Feb 2021 18:08:35 +0300 Subject: oops... Dbx_sqlite doesn't handle system events properly --- plugins/Dbx_sqlite/src/dbevents.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 4fa873adaf..617a90e13a 100755 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -513,7 +513,7 @@ MEVENT CDbxSQLite::FindNextEvent(MCONTACT hContact, MEVENT hDbEvent) if (hDbEvent == 0) return 0; - DBCachedContact *cc = m_cache->GetCachedContact(hContact); + DBCachedContact *cc = (hContact) ? m_cache->GetCachedContact(hContact) : &m_system; if (cc == nullptr) return 0; @@ -562,7 +562,7 @@ MEVENT CDbxSQLite::FindPrevEvent(MCONTACT hContact, MEVENT hDbEvent) if (hDbEvent == 0) return 0; - DBCachedContact *cc = m_cache->GetCachedContact(hContact); + DBCachedContact *cc = (hContact) ? m_cache->GetCachedContact(hContact) : &m_system; if (cc == nullptr) return 0; -- cgit v1.2.3