diff options
Diffstat (limited to 'options.cpp')
-rwxr-xr-x[-rw-r--r--] | options.cpp | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/options.cpp b/options.cpp index fe1c2c3..4b68d63 100644..100755 --- a/options.cpp +++ b/options.cpp @@ -353,6 +353,19 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA f.close();
}
break;
+ case IDC_COPY_KEY:
+ {
+ if(OpenClipboard(hwndDlg))
+ {
+ char *szKey = UniGetContactSettingUtf(NULL, szGPGModuleName, "GPGPubKey", "");
+ EmptyClipboard();
+ SetClipboardData(CF_OEMTEXT, szKey);
+ CloseClipboard();
+ mir_free(szKey);
+ }
+ else
+ MessageBoxA(0, "Error", "Failed to open clipboard", MB_OK);
+ }
case IDC_LOG_FILE_SET:
{
tmp = GetFilePath(_T("Set log file"), _T("*"), _T("LOG files"), 1);
@@ -366,7 +379,7 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
break;
}
-
+
case WM_NOTIFY:
{
EnableWindow(GetDlgItem(hwndDlg, IDC_AUTO_EXCHANGE), (bIsMiranda09 && IsDlgButtonChecked(hwndDlg, IDC_JABBER_API)));
|