diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 01:28:48 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 01:28:48 +0300 |
commit | 089c1fb6bcbdb5ea07419486b78da9c3e120ee9c (patch) | |
tree | 1cf07b44871112d8fb54f848032bd899200b6dd3 /icons.cpp | |
parent | 6890c7c42b314e31902cf174ad2ce1bdb8f62e1c (diff) |
)
Diffstat (limited to 'icons.cpp')
-rw-r--r-- | icons.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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};
|