From 089c1fb6bcbdb5ea07419486b78da9c3e120ee9c Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Fri, 1 Apr 2011 01:28:48 +0300 Subject: ) --- utilities.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'utilities.cpp') diff --git a/utilities.cpp b/utilities.cpp index f05ebed..201f359 100644 --- a/utilities.cpp +++ b/utilities.cpp @@ -975,12 +975,9 @@ void AddHandlers() bool isContactSecured(HANDLE hContact) { - BYTE gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); - if(!gpg_enc) - { + if(metaIsProtoMetaContacts(hContact)) hContact = metaGetContact(hContact); - gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); - } + BYTE gpg_enc = DBGetContactSettingByte(hContact, szGPGModuleName, "GPGEncryption", 0); if(!gpg_enc) return false; TCHAR *key = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T("")); -- cgit v1.2.3