diff options
author | Alexander Gluzsky <sss123next@list.ru> | 2013-01-28 06:15:37 +0000 |
---|---|---|
committer | Alexander Gluzsky <sss123next@list.ru> | 2013-01-28 06:15:37 +0000 |
commit | 53dc5988239964b2c134d05686d3e345abf6f654 (patch) | |
tree | 1935bba70d4f22e4f1befb21fa637c9fcee5cef1 /plugins/New_GPG/src/options.cpp | |
parent | c8edd352ec9351d662c5e1ea4ae50881d02f53fc (diff) |
added ability to copy public key in key choosing dialog
fixed wrong "resource.h" path in new_gpg.rc
git-svn-id: http://svn.miranda-ng.org/main/trunk@3312 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/New_GPG/src/options.cpp')
-rwxr-xr-x | plugins/New_GPG/src/options.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/New_GPG/src/options.cpp b/plugins/New_GPG/src/options.cpp index feea41b67a..230749623c 100755 --- a/plugins/New_GPG/src/options.cpp +++ b/plugins/New_GPG/src/options.cpp @@ -381,8 +381,7 @@ static INT_PTR CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LP char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", ""); std::string str = szKey;; mir_free(szKey); - for(std::string::size_type i = str.find("\n"); i != std::string::npos; i = str.find("\n", i+2)) - str.replace(i, 1, "\r\n"); + boost::algorithm::replace_all(str, "\n", "\r\n"); HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, str.size() +1); if(!hMem) { |