diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 02:24:07 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2011-04-01 02:24:07 +0300 |
commit | a7823b56a5b08f81248e83804349bc8e9fc61206 (patch) | |
tree | 9d2e3a7a558498be03513c96c35796b948418115 /icons.cpp | |
parent | b0e1bb306eec7f2d13ff385d4c1191646cc3e7f9 (diff) | |
parent | 8cdda41b119526a2741938d57b7e066e1697315b (diff) |
Merge branch 'new_gpg' into new_gpg_autoexchange
Conflicts:
messages.cpp
Diffstat (limited to 'icons.cpp')
-rw-r--r-- | icons.cpp | 12 |
1 files changed, 8 insertions, 4 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);
@@ -102,9 +104,11 @@ void setClistIcon(HANDLE hContact) void setSrmmIcon(HANDLE hContact)
{
- hContact = metaGetCurrent(hContact);
+ hContact = metaGetMostOnline(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};
|