diff options
Diffstat (limited to 'options.cpp')
-rw-r--r-- | options.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/options.cpp b/options.cpp index 8f64c98..e54eded 100644 --- a/options.cpp +++ b/options.cpp @@ -77,8 +77,6 @@ int GpgOptInit(WPARAM wParam,LPARAM lParam) return 0; } -HWND hwndLoadPublicKey = NULL; - map<int, HANDLE> user_data; int item_num = 0; @@ -680,7 +678,6 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP DestroyWindow(hwndDlg); break; case WM_DESTROY: - hwndLoadPublicKey = NULL; break; } @@ -692,9 +689,5 @@ static BOOL CALLBACK DlgProcLoadPublicKey(HWND hwndDlg,UINT msg,WPARAM wParam,LP void ShowLoadPublicKeyDialog() { - if (hwndLoadPublicKey == NULL) - { - hwndLoadPublicKey = CreateDialog(hInst, MAKEINTRESOURCE(IDD_LOAD_PUBLIC_KEY), NULL, DlgProcLoadPublicKey); - } - SetForegroundWindow(hwndLoadPublicKey); + DialogBox(hInst, MAKEINTRESOURCE(IDD_LOAD_PUBLIC_KEY), NULL, DlgProcLoadPublicKey); } |