From 089c1fb6bcbdb5ea07419486b78da9c3e120ee9c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 1 Apr 2011 01:28:48 +0300 Subject: ) --- icons.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'icons.cpp') diff --git a/icons.cpp b/icons.cpp index 1f4d353..a4099db 100644 --- a/icons.cpp +++ b/icons.cpp @@ -81,9 +81,11 @@ void setClistIcon(HANDLE hContact) { bool enabled = isContactSecured(hContact); extern HANDLE g_hCLIcon; - HANDLE hMC = metaGetContact(hContact); + HANDLE hMC = hContact; + if(metaIsProtoMetaContacts(hContact)) + hMC = metaGetContact(hContact); if(g_hCLIcon && enabled) - { // обновить иконки в clist + { HICON icon = IconLibGetIcon("secured"); IconExtraColumn iec = {0}; iec.cbSize = sizeof(iec); @@ -104,7 +106,9 @@ void setSrmmIcon(HANDLE hContact) { hContact = metaGetCurrent(hContact); bool enabled = isContactSecured(hContact); - HANDLE hMC = metaGetContact(hContact); + HANDLE hMC = hContact; + if(metaIsProtoMetaContacts(hContact)) + hMC = metaGetContact(hContact); if(ServiceExists(MS_MSG_MODIFYICON)) { // обновить иконки в srmm StatusIconData sid = {0}; -- cgit v1.2.3 From 8cdda41b119526a2741938d57b7e066e1697315b Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 1 Apr 2011 02:20:17 +0300 Subject: hm )) --- icons.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'icons.cpp') diff --git a/icons.cpp b/icons.cpp index a4099db..cd32911 100644 --- a/icons.cpp +++ b/icons.cpp @@ -104,7 +104,7 @@ void setClistIcon(HANDLE hContact) void setSrmmIcon(HANDLE hContact) { - hContact = metaGetCurrent(hContact); + hContact = metaGetMostOnline(hContact); bool enabled = isContactSecured(hContact); HANDLE hMC = hContact; if(metaIsProtoMetaContacts(hContact)) -- cgit v1.2.3