From f8e420612fcc94a7a3f2455f357d7d57ff31c62d Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 16 Sep 2010 09:25:18 +0300 Subject: modified: gpg_wrapper.cpp modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h --- options.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'options.cpp') diff --git a/options.cpp b/options.cpp index ee84efe..b361113 100644 --- a/options.cpp +++ b/options.cpp @@ -386,6 +386,8 @@ static BOOL CALLBACK DlgProcGpgOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPARA { extern bool bDebugLog, bJabberAPI; bDebugLog = CheckStateStoreDB(hwndDlg, IDC_DEBUG_LOG, "bDebugLog"); + if(bDebugLog) + debuglog.init(); bJabberAPI = CheckStateStoreDB(hwndDlg, IDC_JABBER_API, "bJabberAPI"); { TCHAR tmp[512]; @@ -683,6 +685,7 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP msg += tmp; msg += " found in prescense.)"; SetWindowTextA(hwndDlg, msg.c_str()); + EnableWindow(GetDlgItem(hwndDlg, IDC_IMPORT), 1); } } mir_free(tmp2); @@ -1157,6 +1160,10 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP key_buf.clear(); } break; + case IDC_IMPORT: + void ShowImportKeyDialog(); + ShowImportKeyDialog(); + break; case IDC_SELECT_EXISTING: void ShowSelectExistingKeyDialog(); ShowSelectExistingKeyDialog(); -- cgit v1.2.3