diff options
author | George Hazan <ghazan@miranda.im> | 2021-02-20 18:08:35 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-02-20 18:08:35 +0300 |
commit | a795305752295eb6da69e64deeb023a3a596f182 (patch) | |
tree | a4c1e2d4c629b1f2623c863e9fdd894a28a1af1d /plugins/Dbx_sqlite/src | |
parent | a82fe64e566c38b001fcdc8ef1da2f278fc84d23 (diff) |
oops... Dbx_sqlite doesn't handle system events properly
Diffstat (limited to 'plugins/Dbx_sqlite/src')
-rwxr-xr-x | plugins/Dbx_sqlite/src/dbevents.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |