From 6f228bbb984f403d4e5484b506b6a85980f3a3ee Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Apr 2013 10:55:31 +0000 Subject: fix for Jabber privacy lists editor git-svn-id: http://svn.miranda-ng.org/main/trunk@4457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_privacy.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_privacy.cpp') diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp index 90fa6ec363..76679e5517 100644 --- a/protocols/JabberG/src/jabber_privacy.cpp +++ b/protocols/JabberG/src/jabber_privacy.cpp @@ -1356,9 +1356,12 @@ void CJabberDlgPrivacyLists::CListResetOptions(HWND) void CJabberDlgPrivacyLists::CListFilter(HWND) { - for (HANDLE hContact = db_find_first(m_proto->m_szModuleName); hContact; hContact = db_find_next(hContact, m_proto->m_szModuleName)) - if (HANDLE hItem = m_clcClist.FindContact(hContact)) - m_clcClist.DeleteItem(hItem); + for (HANDLE hContact = db_find_first(); hContact; hContact = db_find_next(hContact)) { + char *proto = GetContactProto(hContact); + if ( !proto || lstrcmpA(proto, m_proto->m_szModuleName)) + if (HANDLE hItem = m_clcClist.FindContact(hContact)) + m_clcClist.DeleteItem(hItem); + } } bool CJabberDlgPrivacyLists::CListIsGroup(HANDLE hGroup) -- cgit v1.2.3