diff options
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);
|