From 6e0a54a479bbcb862df2f69945aa5e3d16ad9db2 Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Sun, 15 Aug 2010 23:35:06 +0300 Subject: modified: init.cpp modified: main.cpp modified: new_gpg.rc modified: resource.h --- main.cpp | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index 8db3d14..a339d6d 100644 --- a/main.cpp +++ b/main.cpp @@ -19,16 +19,6 @@ #include "commonheaders.h" -void test() -{ - string out; - DWORD code; - TCHAR cmd[512]; - _tcscpy(cmd, _T("--list-secret-keys")); -// pxExecute(cmd, "", &out, &code); -// MessageBoxA(0, out.c_str(), "test", MB_OK); -} - HWND hwndFirstRun = NULL, hwndSetDirs = NULL, hwndNewKey = NULL, hwndKeyGen = NULL, hwndSelectExistingKey = NULL; @@ -182,6 +172,17 @@ static BOOL CALLBACK DlgProcFirstRun(HWND hwndDlg,UINT msg,WPARAM wParam,LPARAM DBWriteContactSettingByte(NULL, szModuleName, "FirstRun", 0); DestroyWindow(hwndDlg); break; + case IDC_OTHER: + { + void ShowLoadPublicKeyDialog(); + extern map user_data; + extern int item_num; + item_num = 0; //black magic here + user_data[1] = 0; + MessageBox(0, _T("Set secret key in following dialog.\nI do not know if password protected key is work..."), _T("Info"), MB_OK); + ShowLoadPublicKeyDialog(); + } + break; } break; } @@ -839,6 +840,10 @@ void FirstRun() ShowSetDirsDialog(); } +void InitCheck() +{ +} + void ImportKey() { extern wstring new_key; -- cgit v1.2.3