From 34571247cb430bcc9be56630e9fb0a714b5fd4c8 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 1 Apr 2011 05:50:42 +0300 Subject: modified: icons.cpp modified: messages.cpp modified: utilities.cpp --- icons.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'icons.cpp') diff --git a/icons.cpp b/icons.cpp index cd32911..882f58b 100644 --- a/icons.cpp +++ b/icons.cpp @@ -82,7 +82,9 @@ void setClistIcon(HANDLE hContact) bool enabled = isContactSecured(hContact); extern HANDLE g_hCLIcon; HANDLE hMC = hContact; - if(metaIsProtoMetaContacts(hContact)) + if(metaIsSubcontact(hContact)) + hMC = metaGetContact(hContact); + else if(metaIsProtoMetaContacts(hContact)) hMC = metaGetContact(hContact); if(g_hCLIcon && enabled) { @@ -107,10 +109,12 @@ void setSrmmIcon(HANDLE hContact) hContact = metaGetMostOnline(hContact); bool enabled = isContactSecured(hContact); HANDLE hMC = hContact; - if(metaIsProtoMetaContacts(hContact)) + if(metaIsSubcontact(hContact)) + hMC = metaGetContact(hContact); + else if(metaIsProtoMetaContacts(hContact)) hMC = metaGetContact(hContact); if(ServiceExists(MS_MSG_MODIFYICON)) - { // обновить иконки в srmm + { StatusIconData sid = {0}; sid.cbSize = sizeof(sid); sid.szModule = szGPGModuleName; -- cgit v1.2.3