summaryrefslogtreecommitdiff
path: root/icons.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2011-04-01 01:28:48 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2011-04-01 01:28:48 +0300
commit089c1fb6bcbdb5ea07419486b78da9c3e120ee9c (patch)
tree1cf07b44871112d8fb54f848032bd899200b6dd3 /icons.cpp
parent6890c7c42b314e31902cf174ad2ce1bdb8f62e1c (diff)
)
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 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};