summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-09-10 12:00:05 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-09-10 12:00:05 +0300
commitdec2c3bd578490aed5f3ec490733e2b296d71316 (patch)
treee19a3b571e053e0bcb9c3e7dce14329c391e2b73
parentebdca74fa7d38f83709345753df37f5cd6c420f1 (diff)
fixes #2566 (Jabber: privacy lists editor creates problems with hidden contacts)
-rw-r--r--protocols/JabberG/src/jabber_chat.cpp4
-rw-r--r--protocols/JabberG/src/jabber_privacy.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_chat.cpp b/protocols/JabberG/src/jabber_chat.cpp
index 2908e74bde..7cbacfb16d 100644
--- a/protocols/JabberG/src/jabber_chat.cpp
+++ b/protocols/JabberG/src/jabber_chat.cpp
@@ -660,8 +660,8 @@ class CGroupchatInviteDlg : public CJabberDlgBase
void ResetListOptions(CCtrlClc *)
{
- m_clc.SetHideEmptyGroups(1);
- m_clc.SetHideOfflineRoot(1);
+ m_clc.SetHideEmptyGroups(true);
+ m_clc.SetHideOfflineRoot(true);
}
void InviteUser(char *pUser, char *text)
diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp
index 2e4ae8194a..f7936aff28 100644
--- a/protocols/JabberG/src/jabber_privacy.cpp
+++ b/protocols/JabberG/src/jabber_privacy.cpp
@@ -1289,7 +1289,7 @@ public:
SendDlgItemMessage(m_hwnd, IDC_TXT_RULES, WM_SETFONT, (WPARAM)hfnt, TRUE);
SetWindowLongPtr(m_clcClist.GetHwnd(), GWL_STYLE,
- GetWindowLongPtr(m_clcClist.GetHwnd(), GWL_STYLE) | CLS_HIDEEMPTYGROUPS | CLS_USEGROUPS | CLS_GREYALTERNATE);
+ GetWindowLongPtr(m_clcClist.GetHwnd(), GWL_STYLE) | CLS_SHOWHIDDEN | CLS_HIDEEMPTYGROUPS | CLS_USEGROUPS | CLS_GREYALTERNATE);
m_clcClist.SetExStyle(CLS_EX_DISABLEDRAGDROP | CLS_EX_TRACKSELECT);
HIMAGELIST hIml = ImageList_Create(GetSystemMetrics(SM_CXSMICON), GetSystemMetrics(SM_CYSMICON), ILC_COLOR32 | ILC_MASK, 9, 9);