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