summaryrefslogtreecommitdiff
path: root/options.cpp
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
committerGluzskiy Alexandr <sss123next@list.ru>2010-09-16 09:25:18 +0300
commitf8e420612fcc94a7a3f2455f357d7d57ff31c62d (patch)
tree336a04f0a95cd6b9da2c98a4c64d32d232c1f4c0 /options.cpp
parentfdfc7bdd1090a495dce55f651f159592ce77bdb1 (diff)
modified: gpg_wrapper.cpp
modified: log.cpp modified: log.h modified: main.cpp modified: new_gpg.rc modified: options.cpp modified: resource.h
Diffstat (limited to 'options.cpp')
-rw-r--r--options.cpp7
1 files changed, 7 insertions, 0 deletions
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();