summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp25
1 files changed, 15 insertions, 10 deletions
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<int, HANDLE> 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;