summaryrefslogtreecommitdiff
path: root/protocols/JabberG/src/jabber_privacy.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-16 10:55:31 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-16 10:55:31 +0000
commit6f228bbb984f403d4e5484b506b6a85980f3a3ee (patch)
tree79e2e7e3e44f581ad8b3a62180f25b409af0fce1 /protocols/JabberG/src/jabber_privacy.cpp
parent9ecad76b75ed9f7a9c729f1294bc62bd4b6adb68 (diff)
fix for Jabber privacy lists editor
git-svn-id: http://svn.miranda-ng.org/main/trunk@4457 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.cpp')
-rw-r--r--protocols/JabberG/src/jabber_privacy.cpp9
1 files changed, 6 insertions, 3 deletions
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)