summaryrefslogtreecommitdiff
path: root/icons.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-04-01 05:50:42 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-04-01 05:50:42 +0300
commit34571247cb430bcc9be56630e9fb0a714b5fd4c8 (patch)
tree84f04ce5aa4110d2eaf1b65578b28cb533531bf5 /icons.cpp
parent8cdda41b119526a2741938d57b7e066e1697315b (diff)
modified: icons.cpp
modified: messages.cpp modified: utilities.cpp
Diffstat (limited to 'icons.cpp')
-rw-r--r--icons.cpp10
1 files changed, 7 insertions, 3 deletions
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;