diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-30 20:05:12 +0200 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-11-30 20:05:12 +0200 |
commit | d16c6a6d264b91d545e4baa24b2d9efd06ec0260 (patch) | |
tree | 86cf152cd85e7241197812554ee4f7e211b4292f /main.cpp | |
parent | 46f48e58a81256148f74e5d753c708dd1ff3d563 (diff) | |
parent | b9278adb04c824b47da7ac0ec7c1c8ef5931c888 (diff) |
Merge branch 'new_gpg' into new_gpg_autoexchange
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1727,7 +1727,6 @@ void ImportKey() if(metaIsProtoMetaContacts(hContact)) if(MessageBox(0, _T("Do you want load key for all subcontacts ?"), _T("Metacontact detected"), MB_YESNO) == IDYES) for_all_sub = true; - if(metaIsProtoMetaContacts(hContact)) { HANDLE hcnt = NULL; @@ -1761,7 +1760,10 @@ void ImportKey() _tcscat(tmp2, _T("temporary_exported.asc")); DeleteFile(tmp2); wfstream f(tmp2, std::ios::out); - ptmp = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T("")); + if(metaIsProtoMetaContacts(hContact)) + ptmp = UniGetContactSettingUtf(metaGetCurrent(hContact), szGPGModuleName, "GPGPubKey", _T("")); + else + ptmp = UniGetContactSettingUtf(hContact, szGPGModuleName, "GPGPubKey", _T("")); wstring new_key = ptmp; mir_free(ptmp); f<<new_key.c_str(); |