From ad342afa257eea4160e9c628a7792617245e9323 Mon Sep 17 00:00:00 2001 From: Alexander Gluzsky Date: Sun, 21 Apr 2013 01:13:34 +0000 Subject: fixed srmm icons flags git-svn-id: http://svn.miranda-ng.org/main/trunk@4494 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/New_GPG/src/icons.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/New_GPG/src/icons.cpp') 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); -- cgit v1.2.3