diff options
author | George Hazan <george.hazan@gmail.com> | 2016-05-27 10:08:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-05-27 10:08:00 +0000 |
commit | db10ee4ebb7f047c72f70828c89c95d62ee482cd (patch) | |
tree | f3c9ad089f9ba098508d2327b22cd2f834b127fd /plugins | |
parent | 370d627df54c0b0823a1739176e0157c0205b692 (diff) |
- fixes #1242 (for subgroups)
git-svn-id: http://svn.miranda-ng.org/main/trunk@16874 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 61a07f0e63..b4fdd72147 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -326,21 +326,11 @@ static LRESULT clcOnCommand(ClcData *dat, HWND hwnd, UINT, WPARAM wParam, LPARAM {
ClcContact *contact;
int hit = pcli->pfnGetRowByIndex(dat, dat->selection, &contact, NULL);
- if (hit != -1) {
+ if (hit != -1 && contact->type == CLCIT_GROUP) {
switch (LOWORD(wParam)) {
- case POPUP_NEWSUBGROUP:
- if (contact->type == CLCIT_GROUP) {
- SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) & ~CLS_HIDEEMPTYGROUPS);
- SetWindowLongPtr(hwnd, GWL_STYLE, GetWindowLongPtr(hwnd, GWL_STYLE) | CLS_USEGROUPS);
- Clist_GroupCreate(contact->groupId, 0);
- }
- return 0;
-
case POPUP_GROUPSHOWOFFLINE:
- if (contact->type == CLCIT_GROUP) {
- Clist_GroupSetFlags(contact->groupId, MAKELPARAM(CLCItems_IsShowOfflineGroup(contact->group) ? 0 : GROUPF_SHOWOFFLINE, GROUPF_SHOWOFFLINE));
- pcli->pfnClcBroadcast(CLM_AUTOREBUILD, 0, 0);
- }
+ Clist_GroupSetFlags(contact->groupId, MAKELPARAM(CLCItems_IsShowOfflineGroup(contact->group) ? 0 : GROUPF_SHOWOFFLINE, GROUPF_SHOWOFFLINE));
+ pcli->pfnClcBroadcast(CLM_AUTOREBUILD, 0, 0);
return 0;
}
}
|