diff options
author | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-28 01:01:27 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss123next@list.ru> | 2010-08-28 01:01:27 +0300 |
commit | 634d16d7a56e8ba72fda7b6f1896970b96b331ff (patch) | |
tree | 35cee2ef3351ae607fa7196413626badcf0c92a7 /options.cpp | |
parent | 26f425f0153de537bc676c9c38a68ef3edd882c5 (diff) |
fixed crash when loading existing secret key
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/options.cpp b/options.cpp index f902d59..9d9b952 100644 --- a/options.cpp +++ b/options.cpp @@ -625,6 +625,13 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP DBDeleteContactSetting(user_data[item_num+1], szGPGModuleName, "bAlwatsTrust"); { TCHAR *tmp; + + if(output.find("already in secret keyring") != string::npos) + { + MessageBox(0, _T("Key already in scret key ring."), _T("Info"), MB_OK); + DeleteFile(tmp2); + break; + } char *tmp2; string::size_type s = output.find("gpg: key ") + strlen("gpg: key "); string::size_type s2 = output.find(":", s);
|