diff options
-rwxr-xr-x | plugins/New_GPG/src/icons.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/New_GPG/src/icons.cpp b/plugins/New_GPG/src/icons.cpp index 0f436b53cc..4c7b100023 100755 --- a/plugins/New_GPG/src/icons.cpp +++ b/plugins/New_GPG/src/icons.cpp @@ -63,7 +63,7 @@ void setSrmmIcon(HANDLE h) {
HANDLE hContact = metaIsProtoMetaContacts(h)?metaGetMostOnline(h):h;
bool enabled = isContactSecured(hContact);
- HANDLE hMC = hContact;
+ HANDLE hMC = NULL;
if(metaIsSubcontact(hContact))
hMC = metaGetContact(hContact);
else if(metaIsProtoMetaContacts(hContact))
@@ -80,6 +80,7 @@ void setSrmmIcon(HANDLE h) sid.hIcon = IconLibGetIcon("unsecured");
sid.dwId = 2;
+ sid.flags = enabled ? MBF_HIDDEN : 0;
Srmm_ModifyIcon(hContact, &sid);
if(hMC)
Srmm_ModifyIcon(hMC, &sid);
|